Skip to content

Commit 59aa621

Browse files
committed
testing data backward compatability
1 parent c46af78 commit 59aa621

7 files changed

+14
-19
lines changed

.travis.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ language: php
33
sudo: false
44

55
notifications:
6-
email:
7-
on_success: never
8-
on_failure: always
6+
email:
7+
on_success: never
8+
on_failure: always
99

1010
php:
11-
- 7.2
1211
- 7.3
1312
- 7.4
1413
- 8.0
@@ -25,10 +24,6 @@ before_install:
2524

2625
install:
2726
- travis_retry composer install --no-suggest --prefer-dist -n -o
28-
- travis_retry composer require --dev satooshi/php-coveralls
2927

3028
script:
31-
- composer run phpunit -- --coverage-clover ./tests/logs/clover.xml
32-
33-
after_script:
34-
- php vendor/bin/php-coveralls -v
29+
- composer run phpunit

tests/database/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateUsersTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('users', function (Blueprint $table) {
17-
$table->id();
17+
$table->bigIncrements('id');
1818
$table->string('name');
1919
$table->string('email')->unique();
2020
$table->timestamp('email_verified_at')->nullable();

tests/database/migrations/2019_08_19_000000_create_failed_jobs_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateFailedJobsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('failed_jobs', function (Blueprint $table) {
17-
$table->id();
17+
$table->bigIncrements('id');
1818
$table->string('uuid')->unique();
1919
$table->text('connection');
2020
$table->text('queue');

tests/database/migrations/2021_01_18_020123_create_projects_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateProjectsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('projects', function (Blueprint $table) {
17-
$table->id();
17+
$table->bigIncrements('id');
1818
$table->string('name');
1919
$table->string('description');
2020
$table->double('cost_per_hour')->nullable();

tests/database/migrations/2021_01_18_020237_create_tasks_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class CreateTasksTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('tasks', function (Blueprint $table) {
17-
$table->id();
18-
$table->foreignId('project_id');
17+
$table->bigIncrements('id');
18+
$table->unsignedBigInteger('project_id');
1919
$table->string('name');
2020
$table->timestamp('completed_at');
2121
$table->timestamps();

tests/database/migrations/2021_01_18_021015_create_project_user_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class CreateProjectUserTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('project_user', function (Blueprint $table) {
17-
$table->foreignId('project_id');
18-
$table->foreignId('user_id');
17+
$table->unsignedBigInteger('project_id');
18+
$table->unsignedBigInteger('user_id');
1919
$table->boolean('team_leader')->default(false);
2020
});
2121
}

tests/database/migrations/2021_01_18_021055_create_task_user_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ class CreateTaskUserTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('task_user', function (Blueprint $table) {
17-
$table->foreignId('task_id');
18-
$table->foreignId('user_id');
17+
$table->unsignedBigInteger('task_id');
18+
$table->unsignedBigInteger('user_id');
1919
$table->boolean('owner')->default(false);
20-
});
20+
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)