Initial commit to new repo
This commit is contained in:
parent
a267f9bfcc
commit
a5173c981b
292 changed files with 17472 additions and 0 deletions
40
database/migrations/2015_02_28_144939_create_notes_table.php
Normal file
40
database/migrations/2015_02_28_144939_create_notes_table.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateNotesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (! Schema::hasTable('notes')) {
|
||||
Schema::create('notes', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->text('note');
|
||||
$table->string('in_reply_to')->nullable();
|
||||
$table->string('shorturl', 20)->nullable();
|
||||
$table->string('location')->nullable();
|
||||
$table->tinyInteger('photo')->nullable();
|
||||
$table->string('tweet_id')->nullable();
|
||||
$table->string('client_id')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('notes');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue