Skip to content

Commit 8a350ff

Browse files
Laravel 9 migrations
1 parent 5d93259 commit 8a350ff

File tree

56 files changed

+64
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+64
-64
lines changed

src/migrations/2020_01_01_120000_create_default_people_table.php

Lines changed: 1 addition & 1 deletion
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 CreateDefaultPeopleTable extends Migration
7+
return new class extends Migration
88
{
99
public function up()
1010
{

src/migrations/2020_04_10_154637_create_citations_table.php

Lines changed: 1 addition & 1 deletion
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 CreateCitationsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_154850_create_families_table.php

Lines changed: 1 addition & 1 deletion
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 CreateFamiliesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_155019_create_notes_table.php

Lines changed: 1 addition & 1 deletion
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 CreateNotesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_155134_create_places_table.php

Lines changed: 1 addition & 1 deletion
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 CreatePlacesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_155307_create_repositories_table.php

Lines changed: 1 addition & 1 deletion
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 CreateRepositoriesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_155413_create_sources_table.php

Lines changed: 1 addition & 1 deletion
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 CreateSourcesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_10_171030_create_types_table.php

Lines changed: 9 additions & 9 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 CreateTypesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,13 +13,13 @@ class CreateTypesTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('types', function (Blueprint $table) {
17-
$table->id();
18-
$table->string('name');
19-
$table->string('description');
20-
$table->integer('is_active');
21-
$table->timestamps();
22-
});
16+
// Schema::create('types', function (Blueprint $table) {
17+
// $table->id();
18+
// $table->string('name');
19+
// $table->string('description');
20+
// $table->integer('is_active');
21+
// $table->timestamps();
22+
// });
2323
}
2424

2525
/**
@@ -29,6 +29,6 @@ public function up()
2929
*/
3030
public function down()
3131
{
32-
Schema::dropIfExists('types');
32+
// Schema::dropIfExists('types');
3333
}
3434
}

src/migrations/2020_04_24_211718_create_authors_table.php

Lines changed: 1 addition & 1 deletion
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 CreateAuthorsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

src/migrations/2020_04_24_211852_create_publications_table.php

Lines changed: 1 addition & 1 deletion
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 CreatePublicationsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* Run the migrations.

0 commit comments

Comments
 (0)