diff --git a/src/db/migration/V20200311_1131__mantis18357.sql b/src/db/migration/V20200311_1131__mantis18357.sql new file mode 100644 index 000000000..0549b26ff --- /dev/null +++ b/src/db/migration/V20200311_1131__mantis18357.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA_EMBRQ_DESEMBRQ ADD (PARADA_EMB_DES_ID NUMBER(7))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20200312_1113__mantis18357.sql b/src/db/migration/V20200312_1113__mantis18357.sql new file mode 100644 index 000000000..5feb6ffe6 --- /dev/null +++ b/src/db/migration/V20200312_1113__mantis18357.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESQUEMA_CORRIDA_EMBRQ_DESEMBRQ ADD (PARADA_EMB_DES_ID NUMBER(7) )'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200311_1131__mantis18357.sql b/src/db/postgresql/migration/V20200311_1131__mantis18357.sql new file mode 100644 index 000000000..25317d6df --- /dev/null +++ b/src/db/postgresql/migration/V20200311_1131__mantis18357.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE RUTA_EMBRQ_DESEMBRQ ADD PARADA_EMB_DES_ID NUMBER(7); +END +$$; diff --git a/src/db/postgresql/migration/V20200312_1113__mantis18357.sql b/src/db/postgresql/migration/V20200312_1113__mantis18357.sql new file mode 100644 index 000000000..fdbf84526 --- /dev/null +++ b/src/db/postgresql/migration/V20200312_1113__mantis18357.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE ESQUEMA_CORRIDA_EMBRQ_DESEMBRQ ADD PARADA_EMB_DES_ID NUMBER(7); +END +$$;