Skip to content

Commit 23eb701

Browse files
committed
update AddCommand
change migration template in createMigration method
1 parent 05a74ad commit 23eb701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/AddCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public static function createMigration(string $namespace, ?string $className, ?s
271271
$context->appendLine(' public function up(MigrationBuilder $builder): void');
272272
$context->appendLine(' {');
273273
$context->appendLine(' $builder->createTable(\'MyTable\', function ($table) {;');
274-
$context->appendLine(' $table->column(\'Id\')->type(\'integer\')->nullable(false)->identity();');
274+
$context->appendLine(' $table->column(\'Id\')->type(\'integer\')->identity();');
275275
$context->appendLine(' $table->primaryKey(\'Id\');');
276276
$context->appendLine(' });');
277277
$context->appendLine(' }');

0 commit comments

Comments
 (0)