diff --git a/src/db/migration/V20181227_1830__mantis12884.sql b/src/db/migration/V20181227_1830__mantis12884.sql new file mode 100644 index 000000000..30ea6de92 --- /dev/null +++ b/src/db/migration/V20181227_1830__mantis12884.sql @@ -0,0 +1,13 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE LAST_WAR_VERSION ( + LASTWARVERSION_ID NUMBER(15,0) NOT NULL, + FECMODIF DATE NULL, + VERSAO VARCHAR2(45), + PRIMARY KEY (LASTWARVERSION_ID) + )'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20181227_1831__mantis12884.sql b/src/db/migration/V20181227_1831__mantis12884.sql new file mode 100644 index 000000000..71f6c0c94 --- /dev/null +++ b/src/db/migration/V20181227_1831__mantis12884.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'create sequence LAST_WAR_VERSION_SEQ minvalue 1 maxvalue 9999999999999999999999999999 start with 1 increment by 1 nocache ORDER'; + exception when object_exists then null; +end; \ No newline at end of file