diff --git a/.gitignore b/.gitignore index 5a979af..8a4da9d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ build/ .settings .springBeans .sts4-cache +.gigaide bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ diff --git a/src/main/resources/db/changelog/1.0.0/changelog.yml b/src/main/resources/db/changelog/1.0.0/changelog.yml index 2f8e442..cbedb95 100644 --- a/src/main/resources/db/changelog/1.0.0/changelog.yml +++ b/src/main/resources/db/changelog/1.0.0/changelog.yml @@ -89,6 +89,16 @@ databaseChangeLog: nullable: false name: unit_id type: VARCHAR(100) + - column: + constraints: + nullable: true + name: description + type: TEXT + - column: + name: count + type: INT + constraints: + nullable: false - createTable: tableName: qrs columns: @@ -116,26 +126,6 @@ databaseChangeLog: nullable: true name: end_date_time type: TIMESTAMP WITH TIME ZONE - - createTable: - tableName: slots - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: PK_slots - name: id - type: TEXT - - column: - constraints: - nullable: false - name: start_time - type: TIME WITH TIME ZONE - - column: - constraints: - nullable: false - name: end_time - type: TIME WITH TIME ZONE - createTable: tableName: partners columns: @@ -167,13 +157,13 @@ databaseChangeLog: name: email type: TEXT - createTable: - tableName: slots_doors + tableName: schedule columns: - column: constraints: nullable: false primaryKey: true - primaryKeyName: PK_slots_doors + primaryKeyName: PK_schedule_doors name: id type: TEXT - column: @@ -181,23 +171,21 @@ databaseChangeLog: type: TEXT constraints: nullable: false - foreignKeyName: FK_slots_doors_doors + foreignKeyName: FK_schedule_doors references: doors(id) - column: - name: slot_id - type: TEXT constraints: - nullable: false - foreignKeyName: FK_slots_doors_slots - references: slots(id) + nullable: true + name: start_time + type: TIME WITH TIME ZONE - column: - name: day_of_week - type: INT constraints: - nullable: false + nullable: true + name: end_time + type: TIME WITH TIME ZONE - column: - name: count - type: INT + name: date + type: DATE constraints: nullable: false - addForeignKeyConstraint: