mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fix stupid migration? Maybe? Might be more trouble later
This commit is contained in:
parent
91a035ec5b
commit
5846f23d8b
|
@ -12,6 +12,7 @@ class CreateActionlogTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('action_logs')) {
|
||||
Schema::create('action_logs', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('user_id')->nullable();
|
||||
|
@ -34,6 +35,7 @@ class CreateActionlogTable extends Migration
|
|||
$table->index('thread_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
@ -42,6 +44,6 @@ class CreateActionlogTable extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('action_logs');
|
||||
Schema::dropIfExists('action_logs');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue