diff --git a/database/migrations/2018_09_19_060554_create_stories_table.php b/database/migrations/2018_09_19_060554_create_stories_table.php new file mode 100644 index 000000000..5f204ea11 --- /dev/null +++ b/database/migrations/2018_09_19_060554_create_stories_table.php @@ -0,0 +1,34 @@ +increments('bigIncrements'); + $table->bigInteger('profile_id')->unsigned(); + $table->timestamp('published_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('stories'); + } +} diff --git a/database/migrations/2018_09_19_060611_create_story_reactions_table.php b/database/migrations/2018_09_19_060611_create_story_reactions_table.php new file mode 100644 index 000000000..eb1d71782 --- /dev/null +++ b/database/migrations/2018_09_19_060611_create_story_reactions_table.php @@ -0,0 +1,33 @@ +bigIncrements('id'); + $table->bigInteger('profile_id')->unsigned()->nullable(); + $table->string('reaction')->index(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('story_reactions'); + } +} diff --git a/database/migrations/2018_09_27_040314_create_collections_table.php b/database/migrations/2018_09_27_040314_create_collections_table.php new file mode 100644 index 000000000..580d993c3 --- /dev/null +++ b/database/migrations/2018_09_27_040314_create_collections_table.php @@ -0,0 +1,37 @@ +bigIncrements('id'); + $table->bigInteger('profile_id')->unsigned()->nullable(); + $table->string('title')->nullable(); + $table->text('description')->nullable(); + $table->boolean('is_nsfw')->default(false); + $table->string('visibility')->default('public')->index(); + $table->timestamp('published_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('collections'); + } +} diff --git a/database/migrations/2018_09_30_051108_create_direct_messages_table.php b/database/migrations/2018_09_30_051108_create_direct_messages_table.php new file mode 100644 index 000000000..63b305f4d --- /dev/null +++ b/database/migrations/2018_09_30_051108_create_direct_messages_table.php @@ -0,0 +1,38 @@ +bigIncrements('id'); + $table->bigInteger('to_id')->unsigned()->index(); + $table->bigInteger('from_id')->unsigned()->index(); + $table->string('from_profile_ids')->nullable(); + $table->boolean('group_message')->default(false); + $table->bigInteger('status_id')->unsigned()->integer(); + $table->unique(['to_id', 'from_id', 'status_id']); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('direct_messages'); + } +} diff --git a/database/migrations/2018_10_02_040917_create_collection_items_table.php b/database/migrations/2018_10_02_040917_create_collection_items_table.php new file mode 100644 index 000000000..fba5ced78 --- /dev/null +++ b/database/migrations/2018_10_02_040917_create_collection_items_table.php @@ -0,0 +1,35 @@ +bigIncrements('id'); + $table->bigInteger('collection_id')->unsigned()->index(); + $table->unsignedInteger('order')->nullable(); + $table->string('object_type')->default('post')->index(); + $table->bigInteger('object_id')->unsigned()->index(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('collection_items'); + } +} diff --git a/database/migrations/2018_10_09_043717_update_status_visibility_defaults.php b/database/migrations/2018_10_09_043717_update_status_visibility_defaults.php new file mode 100644 index 000000000..9c0dc3375 --- /dev/null +++ b/database/migrations/2018_10_09_043717_update_status_visibility_defaults.php @@ -0,0 +1,28 @@ +