mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
#86: Revert boolean changes
This commit is contained in:
parent
c36a7145a5
commit
28bd79aa1a
7 changed files with 17 additions and 17 deletions
|
@ -17,8 +17,8 @@ class CreateActivitiesTable extends Migration {
|
||||||
$table->bigInteger('id', true)->unsigned();
|
$table->bigInteger('id', true)->unsigned();
|
||||||
$table->dateTime('created_at')->index();
|
$table->dateTime('created_at')->index();
|
||||||
$table->integer('user_id')->unsigned();
|
$table->integer('user_id')->unsigned();
|
||||||
$table->unsignedTinyInteger('activity_type');
|
$table->boolean('activity_type');
|
||||||
$table->unsignedTinyInteger('resource_type');
|
$table->boolean('resource_type');
|
||||||
$table->integer('resource_id')->unsigned();
|
$table->integer('resource_id')->unsigned();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ class CreateLicensesTable extends Migration {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->string('title', 100);
|
$table->string('title', 100);
|
||||||
$table->text('description', 65535);
|
$table->text('description', 65535);
|
||||||
$table->unsignedTinyInteger('affiliate_distribution');
|
$table->boolean('affiliate_distribution');
|
||||||
$table->unsignedTinyInteger('open_distribution');
|
$table->boolean('open_distribution');
|
||||||
$table->unsignedTinyInteger('remix');
|
$table->boolean('remix');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ class CreateNotificationsTable extends Migration {
|
||||||
$table->bigInteger('id', true)->unsigned();
|
$table->bigInteger('id', true)->unsigned();
|
||||||
$table->bigInteger('activity_id')->unsigned()->index();
|
$table->bigInteger('activity_id')->unsigned()->index();
|
||||||
$table->integer('user_id')->unsigned()->index();
|
$table->integer('user_id')->unsigned()->index();
|
||||||
$table->unsignedTinyInteger('is_read')->default(0)->index();
|
$table->boolean('is_read')->default(false)->index();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class CreatePlaylistsTable extends Migration {
|
||||||
$table->string('title')->index();
|
$table->string('title')->index();
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->text('description', 65535);
|
$table->text('description', 65535);
|
||||||
$table->unsignedTinyInteger('is_public')->index();
|
$table->boolean('is_public')->index();
|
||||||
$table->integer('track_count')->unsigned()->default(0)->index();
|
$table->integer('track_count')->unsigned()->default(0)->index();
|
||||||
$table->integer('view_count')->unsigned()->default(0);
|
$table->integer('view_count')->unsigned()->default(0);
|
||||||
$table->integer('download_count')->unsigned()->default(0);
|
$table->integer('download_count')->unsigned()->default(0);
|
||||||
|
|
|
@ -20,9 +20,9 @@ class CreateResourceUsersTable extends Migration {
|
||||||
$table->integer('album_id')->unsigned()->nullable()->index();
|
$table->integer('album_id')->unsigned()->nullable()->index();
|
||||||
$table->integer('playlist_id')->unsigned()->nullable()->index();
|
$table->integer('playlist_id')->unsigned()->nullable()->index();
|
||||||
$table->integer('artist_id')->unsigned()->nullable()->index();
|
$table->integer('artist_id')->unsigned()->nullable()->index();
|
||||||
$table->unsignedTinyInteger('is_followed')->default(0);
|
$table->boolean('is_followed')->default(false);
|
||||||
$table->unsignedTinyInteger('is_favourited')->default(0);
|
$table->boolean('is_favourited')->default(false);
|
||||||
$table->unsignedTinyInteger('is_pinned')->default(0);
|
$table->boolean('is_pinned')->default(false);
|
||||||
$table->integer('view_count')->default(0);
|
$table->integer('view_count')->default(0);
|
||||||
$table->integer('play_count')->default(0);
|
$table->integer('play_count')->default(0);
|
||||||
$table->integer('download_count')->default(0);
|
$table->integer('download_count')->default(0);
|
||||||
|
|
|
@ -16,11 +16,11 @@ class CreateTrackFilesTable extends Migration {
|
||||||
{
|
{
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->integer('track_id')->unsigned()->index('track_files_track_id_foreign');
|
$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->string('format')->index();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->unsignedTinyInteger('is_cacheable')->default(0)->index();
|
$table->boolean('is_cacheable')->default(false)->index();
|
||||||
$table->unsignedTinyInteger('status')->default(0);
|
$table->boolean('status')->default(false);
|
||||||
$table->dateTime('expires_at')->nullable()->index();
|
$table->dateTime('expires_at')->nullable()->index();
|
||||||
$table->integer('filesize')->unsigned()->nullable();
|
$table->integer('filesize')->unsigned()->nullable();
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,19 +17,19 @@ class CreateUsersTable extends Migration {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->string('display_name')->index();
|
$table->string('display_name')->index();
|
||||||
$table->string('username')->nullable();
|
$table->string('username')->nullable();
|
||||||
$table->unsignedTinyInteger('sync_names')->default(1);
|
$table->boolean('sync_names')->default(true);
|
||||||
$table->string('email', 150)->nullable();
|
$table->string('email', 150)->nullable();
|
||||||
$table->string('gravatar')->nullable();
|
$table->string('gravatar')->nullable();
|
||||||
$table->string('slug')->unique();
|
$table->string('slug')->unique();
|
||||||
$table->unsignedTinyInteger('uses_gravatar')->default(1);
|
$table->boolean('uses_gravatar')->default(true);
|
||||||
$table->unsignedTinyInteger('can_see_explicit_content')->default(0);
|
$table->boolean('can_see_explicit_content')->default(false);
|
||||||
$table->text('bio', 65535)->default('');
|
$table->text('bio', 65535)->default('');
|
||||||
$table->integer('track_count')->unsigned()->default(0)->index();
|
$table->integer('track_count')->unsigned()->default(0)->index();
|
||||||
$table->integer('comment_count')->unsigned()->default(0);
|
$table->integer('comment_count')->unsigned()->default(0);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->integer('avatar_id')->unsigned()->nullable()->index('users_avatar_id_foreign');
|
$table->integer('avatar_id')->unsigned()->nullable()->index('users_avatar_id_foreign');
|
||||||
$table->string('remember_token', 100)->nullable();
|
$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();
|
$table->dateTime('disabled_at')->nullable()->index();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue