Skip to content

Commit 3fb9acd

Browse files
committed
second attempt
1 parent 1f0c729 commit 3fb9acd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

database/migrations/task1/2021_11_08_091231_create_tasks_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function up()
1515
{
1616
Schema::create('tasks', function (Blueprint $table) {
1717
$table->id();
18-
$table->bigInteger('user_id');
18+
$table->bigIncrements('user_id');
1919
$table->foreign('user_id')->references('id')->on('users');
2020
$table->string('name');
2121
$table->timestamps();

database/migrations/task10/2021_11_09_090858_create_visitors_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up()
1616
// TASK: edit this migration so country_id would allow NULL values
1717
Schema::create('visitors', function (Blueprint $table) {
1818
$table->id();
19-
$table->foreignId('country_id')->constrained()->nullable();
19+
$table->foreignId('country_id')->nullable()->constrained();
2020
$table->string('ip_address');
2121
$table->timestamps();
2222
});

database/migrations/task9/2021_11_09_090018_rename_name_in_companies_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up()
1616
// TASK: write the migration to rename the column "title" into "name"
1717
Schema::table('companies', function (Blueprint $table) {
1818
// Write code here
19-
$table->renameColumn('title', 'name')
19+
$table->renameColumn('title', 'name');
2020
});
2121
}
2222

0 commit comments

Comments
 (0)