Skip to content

Commit 684ae1a

Browse files
committed
Adopt anonymous migrations
1 parent 95ab776 commit 684ae1a

6 files changed

Lines changed: 12 additions & 12 deletions

database/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateUsersTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -33,4 +33,4 @@ public function down()
3333
{
3434
Schema::dropIfExists('users');
3535
}
36-
}
36+
};

database/migrations/2014_10_12_100000_create_password_resets_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreatePasswordResetsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -29,4 +29,4 @@ public function down()
2929
{
3030
Schema::dropIfExists('password_resets');
3131
}
32-
}
32+
};

database/migrations/2020_07_13_025112_add_clients.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class AddClients extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -27,4 +27,4 @@ public function down(): void
2727
{
2828
Schema::drop('clients');
2929
}
30-
}
30+
};

database/migrations/2020_07_13_025547_add_client_user.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class AddClientUser extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -26,4 +26,4 @@ public function down(): void
2626
{
2727
Schema::drop('client_user');
2828
}
29-
}
29+
};

database/migrations/2020_07_13_032933_add_projects.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class AddProjects extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -28,4 +28,4 @@ public function down(): void
2828
{
2929
Schema::drop('projects');
3030
}
31-
}
31+
};

database/migrations/2020_12_31_125429_create_sessions_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateSessionsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -32,4 +32,4 @@ public function down()
3232
{
3333
Schema::dropIfExists('sessions');
3434
}
35-
}
35+
};

0 commit comments

Comments
 (0)