Skip to content

Commit 54ddf83

Browse files
committed
update_caracters
1 parent 57e84fc commit 54ddf83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

database/migrations/2023_01_20_094214_create_key_messages_table.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class CreateKeyMessagesTable extends Migration
1212
*/
1313
public function up()
1414
{
15-
Schema::dropIfExists('key_messages'); // Drop the table if it already exists
15+
Schema::dropIfExists('key_messages'); // Drop the table if it already exists
1616

17-
Schema::create('key_messages', function (Blueprint $table) {
18-
$table->increments('id');
19-
$table->unsignedInteger('entities_stage_id');
20-
$table->string('title');
21-
$table->foreign('entities_stage_id')->references('id')->on('whatnow_entity_stages')->onDelete('cascade');
22-
});
17+
Schema::create('key_messages', function (Blueprint $table) {
18+
$table->increments('id');
19+
$table->unsignedInteger('entities_stage_id');
20+
$table->string('title', 255);
21+
$table->foreign('entities_stage_id')->references('id')->on('whatnow_entity_stages')->onDelete('cascade');
22+
});
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)