Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
1) quartz liquibase migrations are moved to tesler-started-quartz tes…
Browse files Browse the repository at this point in the history
…ler-platform/tesler#184, so can be excluded from archetype (if tesler-started-quartz is not used)

2) logicalFilePath fixes in liquibase files
  • Loading branch information
IgorNB committed Aug 23, 2021
1 parent b3910da commit 9dd80be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 478 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd"
logicalFilePath="db/changelogdb_prepare.xml">
logicalFilePath="db/changelog/0000100_tesler_db_prepare.xml">

<changeSet runAlways="true" dbms="oracle" id="ORACLE CHAR SEMMANTICS" author="initial">
<sql>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd"
logicalFilePath="db/changelogsequences.xml">
logicalFilePath="db/changelog/0000200_tesler_sequences.xml">
<changeSet author="initial" id="APP_SEQ SEQUENCE">
<createSequence maxValue="9223372036854775807" sequenceName="APP_SEQ" startValue="1000000"/>
</changeSet>
Expand Down
107 changes: 3 additions & 104 deletions src/main/resources/db/changelog/0000300_tesler_core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -926,86 +926,7 @@
<column name="USER_ID" type="NUMBER(19, 0)"/>
</createTable>
</changeSet>
<changeSet author="initial" id="SCHEDULED_JOB TABLE">
<createTable tableName="SCHEDULED_JOB">
<column name="ID" remarks="Суррогатный идентификатор" type="NUMBER(19, 0)">
<constraints primaryKey="true" primaryKeyName="SCHEDULED_JOB_PK"/>
</column>
<column name="SERVICE_NAME" remarks="Название сервиса" type="VARCHAR2(255)"/>
<column name="CRON_EXPRESSION" remarks="Расписание" type="VARCHAR2(255)"/>
<column defaultValueNumeric="0" name="ACTIVE_FLAG" remarks="Признак активности" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="0" name="SYSTEM_FLAG" remarks="Признак системного задания" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="0" name="LAUNCH_ON_CREATE" remarks="Запускать сразу после создания"
type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="LAST_LAUNCH_STATUS_CD" remarks="Статус последнего запуска" type="VARCHAR2(255)"/>
<column name="LAST_LAUNCH_DATE" remarks="Дата последнего запуска" type="TIMESTAMP(6)"/>
<column name="LAST_LAUNCH_CNT" remarks="Кол-во попыток последнего запуска" type="NUMBER(19, 0)"/>
<column defaultValueNumeric="0" name="LAUNCH_CNT" remarks="Кол-во запусков" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="0" name="LAUNCH_FAILED_CNT" remarks="Кол-во запусков с ошибкой"
type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="0" name="LAUNCH_FAILED_LAST_CNT"
remarks="Кол-во запусков с ошибкой с момента последнего успешного" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column name="LAST_SUCCESS_LAUNCH_DURATION" remarks="Длительность последнего успешного запуска"
type="NUMBER(19, 0)"/>
<column defaultValueComputed="current_timestamp" name="CREATED_DATE" type="TIMESTAMP(6)">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="current_timestamp" name="UPDATED_DATE" type="TIMESTAMP(6)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="1" name="CREATED_BY_USER_ID" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="1" name="LAST_UPD_BY_USER_ID" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column name="LAST_SUCCESS_LAUNCH_DATE" remarks="Дата последнего успешного запуска" type="TIMESTAMP(6)"/>
<column defaultValueNumeric="0" name="VSTAMP" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
<changeSet author="initial" id="SCHEDULED_JOB_PARAM TABLE">
<createTable remarks="Параметры запуска фонового задания" tableName="SCHEDULED_JOB_PARAM">
<column name="ID" remarks="Индентификатор" type="NUMBER(19, 0)">
<constraints primaryKey="true" primaryKeyName="PK_SCHEDULED_JOB_PARAM"/>
</column>
<column name="SCHEDULED_JOB_ID" remarks="Идентификатор фонового задания" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column name="PARAM_NAME" remarks="Название параметра" type="VARCHAR2(255)"/>
<column name="PARAM_VALUE" remarks="Значение параметра" type="VARCHAR2(255)"/>
<column defaultValueComputed="current_timestamp" name="CREATED_DATE" remarks="Дата создания"
type="TIMESTAMP(6)">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="current_timestamp" name="UPDATED_DATE" remarks="Дата изменения"
type="TIMESTAMP(6)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="1" name="CREATED_BY_USER_ID" remarks="Кто создал" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="1" name="LAST_UPD_BY_USER_ID" remarks="Кто изменил" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
<column defaultValueNumeric="0" name="VSTAMP" type="NUMBER(19, 0)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>

<changeSet author="initial" id="SCREEN TABLE">
<createTable remarks="Экран" tableName="SCREEN">
<column name="ID" remarks="Идентификатор" type="NUMBER(19, 0)">
Expand Down Expand Up @@ -2133,20 +2054,7 @@
onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ID"
referencedTableName="USERS" validate="true"/>
</changeSet>
<changeSet author="initial" id="SCHEDULED_JOB_PARAM CONSTRAINTS">
<addForeignKeyConstraint baseColumnNames="CREATED_BY_USER_ID" baseTableName="SCHEDULED_JOB_PARAM"
constraintName="FK_JOB_PARAM_CREATED_BY" deferrable="false" initiallyDeferred="false"
onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ID"
referencedTableName="USERS" validate="true"/>
<addForeignKeyConstraint baseColumnNames="LAST_UPD_BY_USER_ID" baseTableName="SCHEDULED_JOB_PARAM"
constraintName="FK_JOB_PARAM_UPDATED_BY" deferrable="false" initiallyDeferred="false"
onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ID"
referencedTableName="USERS" validate="true"/>
<addForeignKeyConstraint baseColumnNames="SCHEDULED_JOB_ID" baseTableName="SCHEDULED_JOB_PARAM"
constraintName="FK_SCHEDULED_JOB_ARG" deferrable="false" initiallyDeferred="false"
onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ID"
referencedTableName="SCHEDULED_JOB" validate="true"/>
</changeSet>

<changeSet author="initial" id="LAYOUTS_VIEWS CONSTRAINTS">
<addForeignKeyConstraint baseColumnNames="CREATED_BY_USER_ID" baseTableName="LAYOUTS_VIEWS"
constraintName="FK_LAYOUTSVIEWS_CREATED_BY" deferrable="false"
Expand Down Expand Up @@ -2285,16 +2193,7 @@
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="ID" referencedTableName="USERS" validate="true"/>
</changeSet>
<changeSet author="initial" id="SCHEDULED_JOB CONSTRAINTS">
<addForeignKeyConstraint baseColumnNames="CREATED_BY_USER_ID" baseTableName="SCHEDULED_JOB"
constraintName="FK_SCHEDULED_JOB_CREATED_BY" deferrable="false"
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="ID" referencedTableName="USERS" validate="true"/>
<addForeignKeyConstraint baseColumnNames="LAST_UPD_BY_USER_ID" baseTableName="SCHEDULED_JOB"
constraintName="FK_SCHEDULED_JOB_UPDATED_BY" deferrable="false"
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="ID" referencedTableName="USERS" validate="true"/>
</changeSet>

<changeSet author="initial" id="SCREEN CONSTRAINTS">
<addForeignKeyConstraint baseColumnNames="CREATED_BY_USER_ID" baseTableName="SCREEN"
constraintName="FK_SCREEN_CREATED_BY" deferrable="false" initiallyDeferred="false"
Expand Down
Loading

0 comments on commit 9dd80be

Please sign in to comment.