Skip to content

Commit

Permalink
Add migration for social posts table
Browse files Browse the repository at this point in the history
  • Loading branch information
ymihaylov committed Feb 16, 2015
1 parent d8c5092 commit 35d52aa
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/migrations/2015_01_30_083351_create_social_posts_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSocialPostsTable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('social_posts', function(Blueprint $table)
{
$table->increments('id');

$table->string('type');
$table->string('title')->nullable();
$table->text('text');
$table->string('social_id');
$table->string('url');
$table->string('image_url')->nullable();
$table->boolean('show_on_page');
$table->timestamp('published_at');

$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('social_posts');
}

}

0 comments on commit 35d52aa

Please sign in to comment.