@@ -19,7 +19,7 @@ public function up()
1919 // so set the default no action and clear out created/modified by another user when deleting a user.
2020 $ onDelete = (('sqlsrv ' === $ driver ) ? 'no action ' : 'set null ' );
2121
22- if (Schema::hasTable ('script_config ' ) && !Schema::hasColumn ('script_config ' , 'storage_service_id ' )){
22+ if (Schema::hasTable ('script_config ' ) && !Schema::hasColumn ('script_config ' , 'storage_service_id ' )) {
2323 Schema::table ('script_config ' , function (Blueprint $ t ) use ($ onDelete ) {
2424 $ t ->string ('scm_reference ' )->nullable ()->after ('config ' );
2525 $ t ->string ('scm_repository ' )->nullable ()->after ('config ' );
@@ -29,7 +29,7 @@ public function up()
2929 });
3030 }
3131
32- if (Schema::hasTable ('event_script ' ) && !Schema::hasColumn ('event_script ' , 'storage_service_id ' )){
32+ if (Schema::hasTable ('event_script ' ) && !Schema::hasColumn ('event_script ' , 'storage_service_id ' )) {
3333 Schema::table ('event_script ' , function (Blueprint $ t ) use ($ onDelete ) {
3434 $ t ->string ('scm_reference ' )->nullable ()->after ('config ' );
3535 $ t ->string ('scm_repository ' )->nullable ()->after ('config ' );
@@ -47,19 +47,21 @@ public function up()
4747 */
4848 public function down ()
4949 {
50- if (Schema::hasTable ('script_config ' ) && Schema::hasColumn ('script_config ' , 'storage_service_id ' )) {
51- Schema::table ('script_config ' , function (Blueprint $ t ){
50+ if (Schema::hasTable ('script_config ' ) && Schema::hasColumn ('script_config ' , 'storage_service_id ' )) {
51+ Schema::table ('script_config ' , function (Blueprint $ t ) {
5252 $ t ->dropColumn ('storage_service_id ' );
5353 $ t ->dropColumn ('storage_path ' );
5454 $ t ->dropColumn ('scm_reference ' );
55+ $ t ->dropColumn ('scm_repository ' );
5556 });
5657 }
5758
58- if (Schema::hasTable ('event_script ' ) && Schema::hasColumn ('event_script ' , 'storage_service_id ' )) {
59- Schema::table ('event_script ' , function (Blueprint $ t ){
59+ if (Schema::hasTable ('event_script ' ) && Schema::hasColumn ('event_script ' , 'storage_service_id ' )) {
60+ Schema::table ('event_script ' , function (Blueprint $ t ) {
6061 $ t ->dropColumn ('storage_service_id ' );
6162 $ t ->dropColumn ('storage_path ' );
6263 $ t ->dropColumn ('scm_reference ' );
64+ $ t ->dropColumn ('scm_repository ' );
6365 });
6466 }
6567 }
0 commit comments