diff --git a/database/migrations/2016_06_26_225535_create_activities_table.php b/database/migrations/2016_06_26_225535_create_activities_table.php index 3fb6943c..9859557b 100644 --- a/database/migrations/2016_06_26_225535_create_activities_table.php +++ b/database/migrations/2016_06_26_225535_create_activities_table.php @@ -17,8 +17,8 @@ class CreateActivitiesTable extends Migration { $table->bigInteger('id', true)->unsigned(); $table->dateTime('created_at')->index(); $table->integer('user_id')->unsigned(); - $table->unsignedTinyInteger('activity_type'); - $table->unsignedTinyInteger('resource_type'); + $table->boolean('activity_type'); + $table->boolean('resource_type'); $table->integer('resource_id')->unsigned(); }); } diff --git a/database/migrations/2016_06_26_225535_create_licenses_table.php b/database/migrations/2016_06_26_225535_create_licenses_table.php index aa625c50..0ce99166 100644 --- a/database/migrations/2016_06_26_225535_create_licenses_table.php +++ b/database/migrations/2016_06_26_225535_create_licenses_table.php @@ -17,9 +17,9 @@ class CreateLicensesTable extends Migration { $table->increments('id'); $table->string('title', 100); $table->text('description', 65535); - $table->unsignedTinyInteger('affiliate_distribution'); - $table->unsignedTinyInteger('open_distribution'); - $table->unsignedTinyInteger('remix'); + $table->boolean('affiliate_distribution'); + $table->boolean('open_distribution'); + $table->boolean('remix'); }); } diff --git a/database/migrations/2016_06_26_225535_create_notifications_table.php b/database/migrations/2016_06_26_225535_create_notifications_table.php index 99ecd626..93f0c384 100644 --- a/database/migrations/2016_06_26_225535_create_notifications_table.php +++ b/database/migrations/2016_06_26_225535_create_notifications_table.php @@ -17,7 +17,7 @@ class CreateNotificationsTable extends Migration { $table->bigInteger('id', true)->unsigned(); $table->bigInteger('activity_id')->unsigned()->index(); $table->integer('user_id')->unsigned()->index(); - $table->unsignedTinyInteger('is_read')->default(0)->index(); + $table->boolean('is_read')->default(false)->index(); }); } diff --git a/database/migrations/2016_06_26_225535_create_playlists_table.php b/database/migrations/2016_06_26_225535_create_playlists_table.php index eff9d25e..4f3382a7 100644 --- a/database/migrations/2016_06_26_225535_create_playlists_table.php +++ b/database/migrations/2016_06_26_225535_create_playlists_table.php @@ -19,7 +19,7 @@ class CreatePlaylistsTable extends Migration { $table->string('title')->index(); $table->string('slug'); $table->text('description', 65535); - $table->unsignedTinyInteger('is_public')->index(); + $table->boolean('is_public')->index(); $table->integer('track_count')->unsigned()->default(0)->index(); $table->integer('view_count')->unsigned()->default(0); $table->integer('download_count')->unsigned()->default(0); diff --git a/database/migrations/2016_06_26_225535_create_resource_users_table.php b/database/migrations/2016_06_26_225535_create_resource_users_table.php index 19aa47cc..e767836e 100644 --- a/database/migrations/2016_06_26_225535_create_resource_users_table.php +++ b/database/migrations/2016_06_26_225535_create_resource_users_table.php @@ -20,9 +20,9 @@ class CreateResourceUsersTable extends Migration { $table->integer('album_id')->unsigned()->nullable()->index(); $table->integer('playlist_id')->unsigned()->nullable()->index(); $table->integer('artist_id')->unsigned()->nullable()->index(); - $table->unsignedTinyInteger('is_followed')->default(0); - $table->unsignedTinyInteger('is_favourited')->default(0); - $table->unsignedTinyInteger('is_pinned')->default(0); + $table->boolean('is_followed')->default(false); + $table->boolean('is_favourited')->default(false); + $table->boolean('is_pinned')->default(false); $table->integer('view_count')->default(0); $table->integer('play_count')->default(0); $table->integer('download_count')->default(0); diff --git a/database/migrations/2016_06_26_225535_create_track_files_table.php b/database/migrations/2016_06_26_225535_create_track_files_table.php index df8a211d..fd83477b 100644 --- a/database/migrations/2016_06_26_225535_create_track_files_table.php +++ b/database/migrations/2016_06_26_225535_create_track_files_table.php @@ -16,11 +16,11 @@ class CreateTrackFilesTable extends Migration { { $table->increments('id'); $table->integer('track_id')->unsigned()->index('track_files_track_id_foreign'); - $table->unsignedTinyInteger('is_master')->default(0)->index(); + $table->boolean('is_master')->default(false)->index(); $table->string('format')->index(); $table->timestamps(); - $table->unsignedTinyInteger('is_cacheable')->default(0)->index(); - $table->unsignedTinyInteger('status')->default(0); + $table->boolean('is_cacheable')->default(false)->index(); + $table->boolean('status')->default(false); $table->dateTime('expires_at')->nullable()->index(); $table->integer('filesize')->unsigned()->nullable(); }); diff --git a/database/migrations/2016_06_26_225535_create_users_table.php b/database/migrations/2016_06_26_225535_create_users_table.php index dce0806c..876371b0 100644 --- a/database/migrations/2016_06_26_225535_create_users_table.php +++ b/database/migrations/2016_06_26_225535_create_users_table.php @@ -17,19 +17,19 @@ class CreateUsersTable extends Migration { $table->increments('id'); $table->string('display_name')->index(); $table->string('username')->nullable(); - $table->unsignedTinyInteger('sync_names')->default(1); + $table->boolean('sync_names')->default(true); $table->string('email', 150)->nullable(); $table->string('gravatar')->nullable(); $table->string('slug')->unique(); - $table->unsignedTinyInteger('uses_gravatar')->default(1); - $table->unsignedTinyInteger('can_see_explicit_content')->default(0); + $table->boolean('uses_gravatar')->default(true); + $table->boolean('can_see_explicit_content')->default(false); $table->text('bio', 65535)->default(''); $table->integer('track_count')->unsigned()->default(0)->index(); $table->integer('comment_count')->unsigned()->default(0); $table->timestamps(); $table->integer('avatar_id')->unsigned()->nullable()->index('users_avatar_id_foreign'); $table->string('remember_token', 100)->nullable(); - $table->unsignedTinyInteger('is_archived')->default(0)->index(); + $table->boolean('is_archived')->default(false)->index(); $table->dateTime('disabled_at')->nullable()->index(); }); }