mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
451 B
22 lines
451 B
<?php
|
|
|
|
use Movim\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateUrlsTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->schema->create('urls', function (Blueprint $table) {
|
|
$table->string('hash');
|
|
$table->text('cache');
|
|
$table->primary('hash');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->schema->drop('urls');
|
|
}
|
|
}
|