diff --git a/database/migrations/2016_08_01_061914_create_services_table.php b/database/migrations/2016_08_01_061914_create_services_table.php index a551878..4d99987 100644 --- a/database/migrations/2016_08_01_061914_create_services_table.php +++ b/database/migrations/2016_08_01_061914_create_services_table.php @@ -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(); }); diff --git a/database/migrations/2016_08_01_061918_create_tickets_table.php b/database/migrations/2016_08_01_061918_create_tickets_table.php index 527c94a..31dddae 100644 --- a/database/migrations/2016_08_01_061918_create_tickets_table.php +++ b/database/migrations/2016_08_01_061918_create_tickets_table.php @@ -16,7 +16,7 @@ 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(); @@ -24,6 +24,7 @@ public function up() $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(); }); } diff --git a/database/migrations/2016_10_25_083620_add_proxies_to_tickets_table.php b/database/migrations/2016_10_25_083620_add_proxies_to_tickets_table.php deleted file mode 100644 index 77f2023..0000000 --- a/database/migrations/2016_10_25_083620_add_proxies_to_tickets_table.php +++ /dev/null @@ -1,31 +0,0 @@ -text('proxies')->nullable()->after('user_id'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('cas_tickets', function (Blueprint $table) { - $table->dropColumn('proxies'); - }); - } -} diff --git a/database/migrations/2016_10_25_092220_add_allow_proxy_to_services_table.php b/database/migrations/2016_10_25_092220_add_allow_proxy_to_services_table.php deleted file mode 100644 index 3f995ce..0000000 --- a/database/migrations/2016_10_25_092220_add_allow_proxy_to_services_table.php +++ /dev/null @@ -1,31 +0,0 @@ -boolean('allow_proxy')->default(false)->after('name'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('cas_services', function (Blueprint $table) { - $table->dropColumn('allow_proxy'); - }); - } -} diff --git a/database/migrations/2016_10_29_083634_change_ticket_column_length.php b/database/migrations/2016_10_29_083634_change_ticket_column_length.php deleted file mode 100644 index 64a6238..0000000 --- a/database/migrations/2016_10_29_083634_change_ticket_column_length.php +++ /dev/null @@ -1,31 +0,0 @@ -string('ticket', 256)->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('cas_tickets', function (Blueprint $table) { - $table->string('ticket', 32)->change(); - }); - } -}