File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/Front/Docs/Content/framework Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,17 @@ Migrations are used to manage database tables that hold persisted model data. Mi
102102``` php
103103// app/CreateBookTable.php
104104
105- use Tempest\Database\Migration ;
105+ use Tempest\Database\DatabaseMigration ;
106106use Tempest\Database\QueryStatement;
107107use Tempest\Database\QueryStatements\CreateTableStatement;
108108use Tempest\Database\QueryStatements\DropTableStatement;
109109
110- final readonly class CreateBookTable implements Migration
110+ final readonly class CreateBookTable implements DatabaseMigration
111111{
112- public function getName(): string
113- {
114- return '2024-08-12_create_book_table';
112+ public string $name {
113+ get {
114+ return '2024-08-12_create_book_table';
115+ }
115116 }
116117
117118 public function up(): QueryStatement|null
@@ -263,4 +264,4 @@ final class Book implements DatabaseModel
263264}
264265```
265266
266- We're still finetuning the relation API, you can follow the progress in [ this issue] ( https://github.com/tempestphp/tempest-framework/issues/756 ) .
267+ We're still finetuning the relation API, you can follow the progress in [ this issue] ( https://github.com/tempestphp/tempest-framework/issues/756 ) .
You can’t perform that action at this time.
0 commit comments