mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2024-12-12 02:07:42 +01:00
4af729687e
Removed 'DB::statement("ALTER TABLE `buttons` AUTO_INCREMENT=0;");' due to incompatibility with SQLite.
33 lines
616 B
PHP
Executable File
33 lines
616 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateButtonsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('buttons', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('buttons');
|
|
}
|
|
}
|