#86: Revert boolean changes

This commit is contained in:
Josef Citrine 2016-06-29 20:09:02 +01:00
parent c36a7145a5
commit 28bd79aa1a
7 changed files with 17 additions and 17 deletions

View file

@ -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();
});
}

View file

@ -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');
});
}

View file

@ -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();
});
}

View file

@ -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);

View file

@ -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);

View file

@ -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();
});

View file

@ -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();
});
}