alter table buttons auto increment start from zero

This commit is contained in:
aprillio 2021-07-06 15:43:30 +07:00
parent 68e72ea251
commit 81003986f5
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ class CreateButtonsTable extends Migration
$table->string('name');
$table->timestamps();
});
// https://laraveldaily.com/set-auto-increment-start-laravel-migrations/
DB::statement("ALTER TABLE `buttons` AUTO_INCREMENT=0;");
}
/**