Skip to content

Commit

Permalink
re-organize migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
leo108 committed Apr 3, 2018
1 parent 46d2da7 commit a4d20f5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function up()
Schema::create('cas_services', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->charset('utf8')->collate('utf8_general_ci')->unique();
$table->boolean('allow_proxy')->default(false);
$table->boolean('enabled')->default(true);
$table->timestamps();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ public function up()
$table->charset = 'utf8';
$table->collation = 'utf8_general_ci';
$table->increments('id');
$table->string('ticket', 32)->unique();
$table->string('ticket', 256)->unique();
$table->string('service_url', 1024);
$table->integer('service_id')->unsigned();
$table->integer('user_id')->unsigned();
$table->timestamp('created_at')->nullable();
$table->timestamp('expire_at')->nullable();
$table->foreign('service_id')->references('id')->on('cas_services');
$table->foreign('user_id')->references(config('cas.user_table.id'))->on(config('cas.user_table.name'));
$table->text('proxies')->nullable();
});
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a4d20f5

Please sign in to comment.