Skip to content

Commit a4d20f5

Browse files
committed
re-organize migration files
1 parent 46d2da7 commit a4d20f5

5 files changed

+3
-94
lines changed

database/migrations/2016_08_01_061914_create_services_table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public function up()
1515
Schema::create('cas_services', function (Blueprint $table) {
1616
$table->increments('id');
1717
$table->string('name')->charset('utf8')->collate('utf8_general_ci')->unique();
18+
$table->boolean('allow_proxy')->default(false);
1819
$table->boolean('enabled')->default(true);
1920
$table->timestamps();
2021
});

database/migrations/2016_08_01_061918_create_tickets_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ public function up()
1616
$table->charset = 'utf8';
1717
$table->collation = 'utf8_general_ci';
1818
$table->increments('id');
19-
$table->string('ticket', 32)->unique();
19+
$table->string('ticket', 256)->unique();
2020
$table->string('service_url', 1024);
2121
$table->integer('service_id')->unsigned();
2222
$table->integer('user_id')->unsigned();
2323
$table->timestamp('created_at')->nullable();
2424
$table->timestamp('expire_at')->nullable();
2525
$table->foreign('service_id')->references('id')->on('cas_services');
2626
$table->foreign('user_id')->references(config('cas.user_table.id'))->on(config('cas.user_table.name'));
27+
$table->text('proxies')->nullable();
2728
});
2829
}
2930

database/migrations/2016_10_25_083620_add_proxies_to_tickets_table.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

database/migrations/2016_10_25_092220_add_allow_proxy_to_services_table.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

database/migrations/2016_10_29_083634_change_ticket_column_length.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)