1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44:32 +02:00

Initial commit

This commit is contained in:
Toby Zerner
2015-05-14 22:01:03 +09:30
commit 57bb8702de
30 changed files with 1073 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMentionsPostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mentionsPosts', function (Blueprint $table) {
$table->integer('post_id')->unsigned();
$table->integer('mentions_id')->unsigned();
$table->primary(['post_id', 'mentions_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('mentionsPosts');
}
}

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMentionsUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mentions_users', function (Blueprint $table) {
$table->integer('post_id')->unsigned();
$table->integer('mentions_id')->unsigned();
$table->primary(['post_id', 'mentions_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('mentions_users');
}
}