From cd96ce9eed171de103f3ca025648154b326bd4df Mon Sep 17 00:00:00 2001 From: yrlvdplsh Date: Sat, 1 Mar 2025 23:48:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B5=D0=B9=D0=BD=D0=B4=D0=B6=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=20=D0=B4=D0=BB=D1=8F=20=D1=8E=D0=B7=D0=B5=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B8=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.properties | 2 +- .../2024/11/24-01-initial-changelog.yaml | 1715 ----------------- .../12/11-01-initial-inserts-species.yaml | 546 ------ .../db/changelog/2024/12/18-01-changelog.yaml | 521 ----- .../changelog/2025/01/04-01-update-users.yaml | 189 -- .../changelog/2025/01/04-02-insert-roles.yaml | 35 - .../2025/01/05-01-create-one-time-tokens.yaml | 31 - .../db/changelog/2025/01/09-01-updates.yaml | 543 ------ .../db/changelog/2025/03/01-01-changelog.yaml | 356 ---- .../03/01-init_users_and_tokens_tables.yaml | 174 ++ .../db/changelog/db.changelog-master.yaml | 3 - 11 files changed, 175 insertions(+), 3940 deletions(-) delete mode 100644 src/main/resources/db/changelog/2024/11/24-01-initial-changelog.yaml delete mode 100644 src/main/resources/db/changelog/2024/12/11-01-initial-inserts-species.yaml delete mode 100644 src/main/resources/db/changelog/2024/12/18-01-changelog.yaml delete mode 100644 src/main/resources/db/changelog/2025/01/04-01-update-users.yaml delete mode 100644 src/main/resources/db/changelog/2025/01/04-02-insert-roles.yaml delete mode 100644 src/main/resources/db/changelog/2025/01/05-01-create-one-time-tokens.yaml delete mode 100644 src/main/resources/db/changelog/2025/01/09-01-updates.yaml delete mode 100644 src/main/resources/db/changelog/2025/03/01-01-changelog.yaml create mode 100644 src/main/resources/db/changelog/2025/03/01-init_users_and_tokens_tables.yaml diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e966ca10..dcbf978c 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -10,7 +10,7 @@ api.secret=${API_SECRET} spring.datasource.url=${SPRING_DATASOURCE_URL} spring.datasource.username=${SPRING_DATASOURCE_USERNAME} spring.datasource.password=${SPRING_DATASOURCE_PASSWORD} -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.driver-class-name=org.postgresql.Driver # Mail spring.mail.host=smtp.mail.ru diff --git a/src/main/resources/db/changelog/2024/11/24-01-initial-changelog.yaml b/src/main/resources/db/changelog/2024/11/24-01-initial-changelog.yaml deleted file mode 100644 index 0716bbc1..00000000 --- a/src/main/resources/db/changelog/2024/11/24-01-initial-changelog.yaml +++ /dev/null @@ -1,1715 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1732447995309-1 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_armors - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: armors - - changeSet: - id: 1732447995309-2 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_backgrounds - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: abilities - type: VARCHAR(255) - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: backgrounds - - changeSet: - id: 1732447995309-3 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_bestiary - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: size - type: VARCHAR(255) - - column: - name: type - type: VARCHAR(255) - - column: - name: tags - type: VARCHAR(255) - - column: - name: alignment - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: ac - type: TINYINT - - column: - name: descriptionac - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: hit - type: SMALLINT - - column: - name: description_hit - type: VARCHAR(255) - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: bestiary - - changeSet: - id: 1732447995309-4 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_books - name: source_acronym - type: VARCHAR(255) - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - name: name - type: VARCHAR(255) - - column: - name: alt_name - type: VARCHAR(255) - - column: - name: english_name - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: type - type: VARCHAR(255) - - column: - name: year - type: INT - tableName: books - - changeSet: - id: 1732447995309-5 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: class_url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: skill - type: VARCHAR(255) - tableName: class_available_skills - - changeSet: - id: 1732447995309-6 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_class_feature_levels - name: id - type: INT - - column: - name: name - type: VARCHAR(255) - - column: - name: prefix - type: VARCHAR(255) - - column: - name: suffix - type: VARCHAR(255) - - column: - name: l1 - type: TINYINT - - column: - name: l2 - type: TINYINT - - column: - name: l3 - type: TINYINT - - column: - name: l4 - type: TINYINT - - column: - name: l5 - type: TINYINT - - column: - name: l6 - type: TINYINT - - column: - name: l7 - type: TINYINT - - column: - name: l8 - type: TINYINT - - column: - name: l9 - type: TINYINT - - column: - name: l10 - type: TINYINT - - column: - name: l11 - type: TINYINT - - column: - name: l12 - type: TINYINT - - column: - name: l13 - type: TINYINT - - column: - name: l14 - type: TINYINT - - column: - name: l15 - type: TINYINT - - column: - name: l16 - type: TINYINT - - column: - name: l17 - type: TINYINT - - column: - name: l18 - type: TINYINT - - column: - name: l19 - type: TINYINT - - column: - name: l20 - type: TINYINT - - column: - name: class_url - type: VARCHAR(255) - tableName: class_feature_levels - - changeSet: - id: 1732447995309-7 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_class_features - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: original - type: TEXT - - column: - constraints: - nullable: false - name: level - type: SMALLINT - - column: - name: description - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - - column: - name: class_url - type: VARCHAR(255) - tableName: class_features - - changeSet: - id: 1732447995309-8 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: class_url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: ability - type: VARCHAR(255) - tableName: class_saving_throw_abilities - - changeSet: - id: 1732447995309-9 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_class_spell_levels - name: id - type: INT - - column: - name: level - type: TINYINT - - column: - name: slot1 - type: TINYINT - - column: - name: slot2 - type: TINYINT - - column: - name: slot3 - type: TINYINT - - column: - name: slot4 - type: TINYINT - - column: - name: slot5 - type: TINYINT - - column: - name: slot6 - type: TINYINT - - column: - name: slot7 - type: TINYINT - - column: - name: slot8 - type: TINYINT - - column: - name: slot9 - type: TINYINT - - column: - name: class_character_url - type: VARCHAR(255) - - column: - name: class_url - type: VARCHAR(255) - tableName: class_spell_levels - - changeSet: - id: 1732447995309-10 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_classes - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: genitive - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: hit_dice - type: VARCHAR(255) - - column: - name: equipment - type: TEXT - - column: - name: armor_mastery - type: VARCHAR(255) - - column: - name: weapon_mastery - type: VARCHAR(255) - - column: - name: tool_mastery - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: skill_available - type: SMALLINT - - column: - name: parent_url - type: VARCHAR(255) - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: classes - - changeSet: - id: 1732447995309-11 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_entity_tags - name: entity_url - type: VARCHAR(255) - - column: - name: tag_value - type: VARCHAR(255) - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_entity_tags - name: tag_key - type: VARCHAR(255) - tableName: entity_tags - - changeSet: - id: 1732447995309-12 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_equipments - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: equipments - - changeSet: - id: 1732447995309-13 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_feats - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: feats - - changeSet: - id: 1732447995309-14 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_gods - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: gods - - changeSet: - id: 1732447995309-15 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_invitation - name: id - type: BIGINT - - column: - name: link - type: VARCHAR(255) - - column: - name: code - type: VARCHAR(255) - - column: - name: unique_identifier - type: VARCHAR(255) - - column: - name: generation_date - type: DATETIME - - column: - name: user_party_id - type: BIGINT - - column: - name: expiration_time - type: BIGINT - tableName: invitation - - changeSet: - id: 1732447995309-16 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_magic_items - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: original - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: magic_items - - changeSet: - id: 1732447995309-17 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_menu - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - name: icon - type: VARCHAR(255) - - column: - name: only_dev - type: BOOLEAN - - column: - name: order_num - type: INT - - column: - name: on_index - type: BOOLEAN - - column: - name: index_order - type: INT - - column: - name: parent_id - type: VARCHAR(255) - tableName: menu - - changeSet: - id: 1732447995309-18 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_roles - name: id - type: BIGINT - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - tableName: roles - - changeSet: - id: 1732447995309-19 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_screens - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: screens - - changeSet: - id: 1732447995309-20 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_sources - name: id - type: BIGINT - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - constraints: - nullable: false - name: page - type: SMALLINT - - column: - name: book_info_id - type: VARCHAR(255) - tableName: sources - - changeSet: - id: 1732447995309-21 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_species - name: url - type: VARCHAR(255) - - column: - name: size - type: VARCHAR(255) - - column: - name: type - type: VARCHAR(255) - - column: - defaultValueNumeric: !!float '30' - name: speed - type: int - - column: - constraints: - nullable: false - name: fly - type: INT - - column: - constraints: - nullable: false - name: climb - type: INT - - column: - constraints: - nullable: false - name: swim - type: INT - - column: - constraints: - nullable: false - name: dark_vision - type: INT - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: short_name - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - name: parent_id - type: VARCHAR(255) - - column: - name: source - type: BIGINT - tableName: species - - changeSet: - id: 1732447995309-22 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_species_features - name: url - type: VARCHAR(255) - - column: - name: source - type: BIGINT - - column: - name: feature_description - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: short_name - type: VARCHAR(255) - - column: - name: description - type: TEXT - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - name: species_url - type: VARCHAR(255) - tableName: species_features - - changeSet: - id: 1732447995309-23 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: species_id - type: VARCHAR(255) - - column: - name: gallery_url - type: VARCHAR(255) - tableName: species_gallery - - changeSet: - id: 1732447995309-24 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_spells - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: original - type: TEXT - - column: - name: description - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: spells - - changeSet: - id: 1732447995309-25 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: user_id - type: BIGINT - - column: - constraints: - nullable: false - name: user_party_id - type: BIGINT - tableName: user_membership - - changeSet: - id: 1732447995309-26 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_user_party - name: id - type: BIGINT - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - name: owner_id - type: BIGINT - - column: - name: group_name - type: VARCHAR(255) - - column: - name: description - type: VARCHAR(255) - tableName: user_party - - changeSet: - id: 1732447995309-27 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: role_id - type: BIGINT - - column: - constraints: - nullable: false - name: user_id - type: BIGINT - tableName: user_role - - changeSet: - id: 1732447995309-28 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: user_id - type: BIGINT - - column: - constraints: - nullable: false - name: user_party_id - type: BIGINT - tableName: user_wait_list - - changeSet: - id: 1732447995309-29 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_users - name: id - type: BIGINT - - column: - name: created_at - type: DATETIME - - column: - name: updated_at - type: DATETIME - - column: - name: name - type: VARCHAR(255) - - column: - name: username - type: VARCHAR(255) - - column: - name: password - type: VARCHAR(255) - - column: - name: email - type: VARCHAR(255) - - column: - name: enabled - type: BOOLEAN - tableName: users - - changeSet: - id: 1732447995309-30 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_weapons - name: id - type: INT - - column: - constraints: - nullable: false - name: url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: english - type: VARCHAR(255) - - column: - name: alternative - type: VARCHAR(255) - - column: - name: original - type: TEXT - - column: - name: description - type: TEXT - - column: - name: source - type: BIGINT - - column: - name: page - type: SMALLINT - - column: - name: created - type: TIMESTAMP - - column: - name: last_updated - type: TIMESTAMP - tableName: weapons - - changeSet: - id: 1732447995309-31 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_youtube_videos - name: id - type: varchar(12) - - column: - name: name - type: VARCHAR(255) - - column: - name: user_id - type: BIGINT - - column: - constraints: - nullable: false - name: active - type: BOOLEAN - - column: - name: order - type: INT - - column: - name: created - type: DATETIME - tableName: youtube_videos - - changeSet: - id: 1732447995309-32 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: link, code - constraintName: uc_44053fd9c39f90b1fb0165109 - tableName: invitation - - changeSet: - id: 1732447995309-33 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: code - constraintName: uc_invitation_code - tableName: invitation - - changeSet: - id: 1732447995309-34 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: link - constraintName: uc_invitation_link - tableName: invitation - - changeSet: - id: 1732447995309-35 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: unique_identifier - constraintName: uc_invitation_uniqueidentifier - tableName: invitation - - changeSet: - id: 1732447995309-36 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: user_party_id - constraintName: uc_invitation_user_party - tableName: invitation - - changeSet: - id: 1732447995309-37 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: name - constraintName: uc_roles_name - tableName: roles - - changeSet: - id: 1732447995309-38 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: url - constraintName: uc_weapons_url - tableName: weapons - - changeSet: - id: 1732447995309-39 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createIndex: - columns: - - column: - name: name - - column: - name: english - - column: - name: alternative - indexName: name_index - tableName: classes - - changeSet: - id: 1732447995309-40 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: armors - constraintName: FK_ARMORS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-41 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: backgrounds - constraintName: FK_BACKGROUNDS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-42 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: bestiary - constraintName: FK_BESTIARY_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-43 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: parent_url - baseTableName: classes - constraintName: FK_CLASSES_ON_PARENT_URL - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-44 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: classes - constraintName: FK_CLASSES_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-45 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_url - baseTableName: class_features - constraintName: FK_CLASS_FEATURES_ON_CLASS_URL - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-46 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: class_features - constraintName: FK_CLASS_FEATURES_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-47 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_url - baseTableName: class_feature_levels - constraintName: FK_CLASS_FEATURE_LEVELS_ON_CLASS_URL - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-48 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_character_url - baseTableName: class_spell_levels - constraintName: FK_CLASS_SPELL_LEVELS_ON_CLASSCHARACTER_URL - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-49 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_url - baseTableName: class_spell_levels - constraintName: FK_CLASS_SPELL_LEVELS_ON_CLASS_URL - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-50 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: equipments - constraintName: FK_EQUIPMENTS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-51 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: feats - constraintName: FK_FEATS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-52 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_party_id - baseTableName: invitation - constraintName: FK_INVITATION_ON_USER_PARTY - referencedColumnNames: id - referencedTableName: user_party - - changeSet: - id: 1732447995309-53 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: magic_items - constraintName: FK_MAGIC_ITEMS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-54 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: parent_id - baseTableName: menu - constraintName: FK_MENU_ON_PARENT - referencedColumnNames: url - referencedTableName: menu - - changeSet: - id: 1732447995309-55 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: book_info_id - baseTableName: sources - constraintName: FK_SOURCES_ON_BOOK_INFO - referencedColumnNames: source_acronym - referencedTableName: books - - changeSet: - id: 1732447995309-56 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: species_features - constraintName: FK_SPECIES_FEATURES_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-57 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: species_url - baseTableName: species_features - constraintName: FK_SPECIES_FEATURES_ON_SPECIES_URL - referencedColumnNames: url - referencedTableName: species - - changeSet: - id: 1732447995309-58 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: parent_id - baseTableName: species - constraintName: FK_SPECIES_ON_PARENT - referencedColumnNames: url - referencedTableName: species - - changeSet: - id: 1732447995309-59 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: species - constraintName: FK_SPECIES_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-60 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: spells - constraintName: FK_SPELLS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-61 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: source - baseTableName: weapons - constraintName: FK_WEAPONS_ON_SOURCE - referencedColumnNames: id - referencedTableName: sources - - changeSet: - id: 1732447995309-62 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_id - baseTableName: youtube_videos - constraintName: FK_YOUTUBE_VIDEOS_ON_USER - referencedColumnNames: id - referencedTableName: users - - changeSet: - id: 1732447995309-63 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_url - baseTableName: class_available_skills - constraintName: fk_class_available_skills_on_class_character - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-64 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_url - baseTableName: class_saving_throw_abilities - constraintName: fk_class_saving_throw_abilities_on_class_character - referencedColumnNames: url - referencedTableName: classes - - changeSet: - id: 1732447995309-65 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: entity_url - baseTableName: entity_tags - constraintName: fk_entity_tags_on_species_feature - referencedColumnNames: url - referencedTableName: species_features - - changeSet: - id: 1732447995309-66 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: species_id - baseTableName: species_gallery - constraintName: fk_species_gallery_on_species - referencedColumnNames: url - referencedTableName: species - - changeSet: - id: 1732447995309-67 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_id - baseTableName: user_membership - constraintName: fk_usemem_on_user - referencedColumnNames: id - referencedTableName: users - - changeSet: - id: 1732447995309-68 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_party_id - baseTableName: user_membership - constraintName: fk_usemem_on_user_party - referencedColumnNames: id - referencedTableName: user_party - - changeSet: - id: 1732447995309-69 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: role_id - baseTableName: user_role - constraintName: fk_user_role_on_role - referencedColumnNames: id - referencedTableName: roles - - changeSet: - id: 1732447995309-70 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_id - baseTableName: user_role - constraintName: fk_user_role_on_user - referencedColumnNames: id - referencedTableName: users - - changeSet: - id: 1732447995309-71 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_id - baseTableName: user_wait_list - constraintName: fk_usewailis_on_user - referencedColumnNames: id - referencedTableName: users - - changeSet: - id: 1732447995309-72 - author: 'ProtectorRTD' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: user_party_id - baseTableName: user_wait_list - constraintName: fk_usewailis_on_user_party - referencedColumnNames: id - referencedTableName: user_party - diff --git a/src/main/resources/db/changelog/2024/12/11-01-initial-inserts-species.yaml b/src/main/resources/db/changelog/2024/12/11-01-initial-inserts-species.yaml deleted file mode 100644 index 839ee91e..00000000 --- a/src/main/resources/db/changelog/2024/12/11-01-initial-inserts-species.yaml +++ /dev/null @@ -1,546 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1 - author: 'ProtectorRTD' - changes: - - insert: - tableName: books - columns: - - column: - name: source_acronym - value: 'PHB' - - column: - name: name - value: 'ПХБ' - - column: - name: alt_name - value: '' - - column: - name: english_name - value: 'PHB' - - column: - name: description - value: 'Player Hands Book' - - column: - name: type - value: 'OFFICIAL' - - column: - name: year - value: '2024' - - - changeSet: - id: 2 - author: 'ProtectorRTD' - changes: - - insert: - tableName: sources - columns: - - column: - name: page - value: '155' - - column: - name: created_at - value: '2024-11-07 20:10:00.731818' - - column: - name: id - value: '1' - - column: - name: updated_at - value: '2024-11-07 20:10:00.731818' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '156' - - column: - name: created_at - value: '2024-11-07 20:10:00.808714' - - column: - name: id - value: '2' - - column: - name: updated_at - value: '2024-11-07 20:10:00.808714' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '181' - - column: - name: created_at - value: '2024-11-11 22:17:31.755532' - - column: - name: id - value: '3' - - column: - name: updated_at - value: '2024-11-11 22:17:31.755532' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '181' - - column: - name: created_at - value: '2024-11-11 22:17:31.796086' - - column: - name: id - value: '4' - - column: - name: updated_at - value: '2024-11-11 22:17:31.796086' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '181' - - column: - name: created_at - value: '2024-11-11 22:17:41.462760' - - column: - name: id - value: '5' - - column: - name: updated_at - value: '2024-11-11 22:17:41.462760' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '181' - - column: - name: created_at - value: '2024-11-11 22:17:41.464760' - - column: - name: id - value: '6' - - column: - name: updated_at - value: '2024-11-11 22:17:41.464760' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '202' - - column: - name: created_at - value: '2024-11-11 22:22:20.761617' - - column: - name: id - value: '7' - - column: - name: updated_at - value: '2024-11-11 22:22:20.761617' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '202' - - column: - name: created_at - value: '2024-11-11 22:22:20.764618' - - column: - name: id - value: '8' - - column: - name: updated_at - value: '2024-11-11 22:22:20.764618' - - column: - name: book_info_id - value: 'PHB' - - insert: - tableName: sources - columns: - - column: - name: page - value: '202' - - column: - name: created_at - value: '2024-11-11 22:22:20.766620' - - column: - name: id - value: '9' - - column: - name: updated_at - value: '2024-11-11 22:22:20.767619' - - column: - name: book_info_id - value: 'PHB' - - - changeSet: - id: 3 - author: 'ProtectorRTD' - changes: - - sql: - dbms: mysql - sql: | - SET foreign_key_checks = 0; # Отключить проверку внешних ключей - - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'aasimar' - - column: - name: gallery_url - value: 'https://img.ttg.club/races/Aasimar.webp' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'aasimar' - - column: - name: gallery_url - value: 'https://i.pinimg.com/originals/2c/4e/ed/2c4eed0d3017600ae4cd05babbada000.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'aasimar' - - column: - name: gallery_url - value: 'https://www.worldanvil.com/uploads/images/1e9bea922bdf306b2b6857d9fee6208c.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'gnome' - - column: - name: gallery_url - value: 'https://img.ttg.club/races/Gnome.webp' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'gnome' - - column: - name: gallery_url - value: 'https://i.pinimg.com/originals/2c/4e/ed/2c4eed0d3017600ae4cd05babbada000.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'gnome' - - column: - name: gallery_url - value: 'https://www.worldanvil.com/uploads/images/1e9bea922bdf306b2b6857d9fee6208c.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'forest-gnome' - - column: - name: gallery_url - value: 'https://img.ttg.club/races/ForestGnome.webp' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'forest-gnome' - - column: - name: gallery_url - value: 'https://i.pinimg.com/originals/2c/4e/ed/2c4eed0d3017600ae4cd05babbada000.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'forest-gnome' - - column: - name: gallery_url - value: 'https://www.worldanvil.com/uploads/images/1e9bea922bdf306b2b6857d9fee6208c.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'rock-gnome' - - column: - name: gallery_url - value: 'https://img.ttg.club/races/RockGnome.webp' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'rock-gnome' - - column: - name: gallery_url - value: 'https://i.pinimg.com/originals/2c/4e/ed/2c4eed0d3017600ae4cd05babbada000.png' - - insert: - tableName: species_gallery - columns: - - column: - name: species_id - value: 'rock-gnome' - - column: - name: gallery_url - value: 'https://www.worldanvil.com/uploads/images/1e9bea922bdf306b2b6857d9fee6208c.png' - - insert: - tableName: species - columns: - - column: - name: climb - value: 0 - - column: - name: dark_vision - value: 60 - - column: - name: fly - value: 0 - - column: - name: is_hidden_entity - value: 0 - - column: - name: speed - value: 30 - - column: - name: swim - value: 0 - - column: - name: created_at - value: '2024-11-07 20:10:00.839712' - - column: - name: source - value: 1 - - column: - name: updated_at - value: '2024-11-07 20:10:00.850710' - - column: - name: alternative - value: 'Angel-blooded' - - column: - name: description - value: 'Aasimar are mortals with celestial heritage. They have traits hinting at their divine ancestry, like glowing eyes or metallic freckles.' - - column: - name: english - value: 'Aasimar' - - column: - name: image_url - value: 'https://img.ttg.club/races/Aasimar.webp' - - column: - name: name - value: 'Aasimar' - - column: - name: parent_id - value: 'aasimar' - - column: - name: url - value: 'aasimar' - - column: - name: size - value: 'MEDIUM' - - column: - name: type - value: 'HUMANOID' - - insert: - tableName: species - columns: - - column: - name: climb - value: 0 - - column: - name: dark_vision - value: 60 - - column: - name: fly - value: 0 - - column: - name: is_hidden_entity - value: 0 - - column: - name: speed - value: 30 - - column: - name: swim - value: 0 - - column: - name: created_at - value: '2024-11-11 22:17:31.827950' - - column: - name: source - value: 3 - - column: - name: updated_at - value: '2024-11-11 22:17:31.841945' - - column: - name: alternative - value: 'Little People' - - column: - name: description - value: 'Гномы – волшебные существа, созданные богами изобретений, иллюзий и подземной жизни. Они скрытные и обладают уникальными магическими способностями.' - - column: - name: english - value: 'Gnome' - - column: - name: image_url - value: 'https://img.ttg.club/races/Gnome.webp' - - column: - name: name - value: 'Гном' - - column: - name: parent_id - value: 'gnome' - - column: - name: url - value: 'gnome' - - column: - name: size - value: 'SMALL' - - column: - name: type - value: 'HUMANOID' - - insert: - tableName: species - columns: - - column: - name: climb - value: 0 - - column: - name: dark_vision - value: 60 - - column: - name: fly - value: 0 - - column: - name: is_hidden_entity - value: 0 - - column: - name: speed - value: 30 - - column: - name: swim - value: 0 - - column: - name: created_at - value: '2024-11-11 22:17:41.470760' - - column: - name: source - value: 5 - - column: - name: updated_at - value: '2024-11-11 22:17:45.808278' - - column: - name: alternative - value: 'Woodland Trickster' - - column: - name: description - value: 'Лесные гномы живут в лесах и наделены магией иллюзий, чтобы защищаться и выживать.' - - column: - name: english - value: 'Forest Gnome' - - column: - name: image_url - value: 'https://img.ttg.club/races/ForestGnome.webp' - - column: - name: name - value: 'Лесной Гном' - - column: - name: parent_id - value: 'gnome' - - column: - name: url - value: 'forest-gnome' - - column: - name: size - value: 'SMALL' - - column: - name: type - value: 'HUMANOID' - - insert: - tableName: species - columns: - - column: - name: climb - value: 0 - - column: - name: dark_vision - value: 60 - - column: - name: fly - value: 0 - - column: - name: is_hidden_entity - value: 0 - - column: - name: speed - value: 30 - - column: - name: swim - value: 0 - - column: - name: created_at - value: '2024-11-11 22:22:20.776619' - - column: - name: source - value: 7 - - column: - name: updated_at - value: '2024-11-11 22:22:40.628185' - - column: - name: alternative - value: 'Tinker Gnome' - - column: - name: description - value: 'Горные гномы – изобретательные создания, способные создавать крошечные механические устройства.' - - column: - name: english - value: 'Rock Gnome' - - column: - name: image_url - value: 'https://img.ttg.club/races/RockGnome.webp' - - column: - name: name - value: 'Горный Гном' - - column: - name: parent_id - value: 'gnome' - - column: - name: url - value: 'rock-gnome' - - column: - name: size - value: 'SMALL' - - column: - name: type - value: 'HUMANOID' - - sql: - dbms: mysql - sql: | - SET foreign_key_checks = 1; # Включаем проверку внешних ключей diff --git a/src/main/resources/db/changelog/2024/12/18-01-changelog.yaml b/src/main/resources/db/changelog/2024/12/18-01-changelog.yaml deleted file mode 100644 index b562628d..00000000 --- a/src/main/resources/db/changelog/2024/12/18-01-changelog.yaml +++ /dev/null @@ -1,521 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1734529422955-53 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: entity_tags - constraintName: fk_entity_tags_on_species_feature - - changeSet: - id: 1734529422955-1 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: background_url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: ability - type: VARCHAR(255) - tableName: background_abilities - - changeSet: - id: 1734529422955-2 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: background_url - type: VARCHAR(255) - - column: - constraints: - nullable: false - name: skill - type: VARCHAR(255) - tableName: background_available_skills - - changeSet: - id: 1734529422955-3 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: book_id - type: VARCHAR(255) - - column: - name: author_name - type: VARCHAR(255) - tableName: book_authors - - changeSet: - id: 1734529422955-4 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_book_tags - name: book_id - type: VARCHAR(255) - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_book_tags - name: tag_id - type: BIGINT - tableName: book_tags - - changeSet: - id: 1734529422955-5 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_class_feature_tags - name: class_feature_id - type: VARCHAR(255) - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_class_feature_tags - name: tag_id - type: BIGINT - tableName: class_feature_tags - - changeSet: - id: 1734529422955-6 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_feature_tags - name: feature_id - type: VARCHAR(255) - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_feature_tags - name: tag_id - type: BIGINT - tableName: feature_tags - - changeSet: - id: 1734529422955-7 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - autoIncrement: true - constraints: - nullable: false - primaryKey: true - primaryKeyName: pk_tags - name: id - type: BIGINT - - column: - constraints: - nullable: false - name: name - type: VARCHAR(255) - - column: - name: tag_type - type: VARCHAR(255) - tableName: tags - - changeSet: - id: 1734529422955-8 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: translation_id - type: VARCHAR(255) - - column: - name: author_name - type: VARCHAR(255) - tableName: translation_authors - - changeSet: - id: 1734529422955-9 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: book_date - type: DATE - - column: - name: image - type: VARCHAR(255) - - column: - name: translation_date - type: DATE - tableName: books - - changeSet: - id: 1734529422955-10 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: category - type: VARCHAR(255) - - column: - name: created_at - type: DATETIME - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: prerequisite - type: VARCHAR(255) - - column: - name: short_name - type: VARCHAR(255) - - column: - name: updated_at - type: DATETIME - tableName: feats - - changeSet: - id: 1734529422955-11 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: count_skill_available - type: SMALLINT - - column: - name: created_at - type: DATETIME - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: main_ability - type: VARCHAR(255) - - column: - name: short_name - type: VARCHAR(255) - - column: - name: updated_at - type: DATETIME - tableName: classes - - changeSet: - id: 1734529422955-12 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: SMALLINT - columnName: count_skill_available - tableName: classes - - changeSet: - id: 1734529422955-13 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: created_at - type: DATETIME - - column: - name: equipment - type: VARCHAR(255) - - column: - name: feat_url - type: VARCHAR(255) - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: propose_classes - type: VARCHAR(255) - - column: - name: short_name - type: VARCHAR(255) - - column: - name: tool_proficiency - type: VARCHAR(255) - - column: - name: updated_at - type: DATETIME - tableName: backgrounds - - changeSet: - id: 1734529422955-14 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: created_at - type: DATETIME - - column: - name: feature_description - type: VARCHAR(255) - - column: - name: image_url - type: VARCHAR(255) - - column: - name: is_hidden_entity - type: BOOLEAN - - column: - name: short_name - type: VARCHAR(255) - - column: - name: updated_at - type: DATETIME - tableName: class_features - - changeSet: - id: 1734529422955-42 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: feat_url - baseTableName: backgrounds - constraintName: FK_BACKGROUNDS_ON_FEAT_URL - referencedColumnNames: url - referencedTableName: feats - - changeSet: - id: 1734529422955-43 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: background_url - baseTableName: background_abilities - constraintName: fk_background_abilities_on_background - referencedColumnNames: url - referencedTableName: backgrounds - - changeSet: - id: 1734529422955-44 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: background_url - baseTableName: background_available_skills - constraintName: fk_background_available_skills_on_background - referencedColumnNames: url - referencedTableName: backgrounds - - changeSet: - id: 1734529422955-45 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: book_id - baseTableName: book_authors - constraintName: fk_book_authors_on_book - referencedColumnNames: source_acronym - referencedTableName: books - - changeSet: - id: 1734529422955-46 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: book_id - baseTableName: book_tags - constraintName: fk_book_tags_on_book - referencedColumnNames: source_acronym - referencedTableName: books - - changeSet: - id: 1734529422955-47 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: tag_id - baseTableName: book_tags - constraintName: fk_book_tags_on_tag - referencedColumnNames: id - referencedTableName: tags - - changeSet: - id: 1734529422955-48 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: class_feature_id - baseTableName: class_feature_tags - constraintName: fk_clafeatag_on_class_feature - referencedColumnNames: url - referencedTableName: class_features - - changeSet: - id: 1734529422955-49 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: tag_id - baseTableName: class_feature_tags - constraintName: fk_clafeatag_on_tag - referencedColumnNames: id - referencedTableName: tags - - changeSet: - id: 1734529422955-50 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: feature_id - baseTableName: feature_tags - constraintName: fk_featag_on_species_feature - referencedColumnNames: url - referencedTableName: species_features - - changeSet: - id: 1734529422955-51 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: tag_id - baseTableName: feature_tags - constraintName: fk_featag_on_tag - referencedColumnNames: id - referencedTableName: tags - - changeSet: - id: 1734529422955-52 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: translation_id - baseTableName: translation_authors - constraintName: fk_translation_authors_on_book - referencedColumnNames: source_acronym - referencedTableName: books - - changeSet: - id: 1734529422955-54 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: entity_tags - - changeSet: - id: 1734529422955-55 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: abilities - tableName: backgrounds - - dropColumn: - columnName: created - tableName: backgrounds - - dropColumn: - columnName: last_updated - tableName: backgrounds - - dropColumn: - columnName: original - tableName: backgrounds - - dropColumn: - columnName: page - tableName: backgrounds - - changeSet: - id: 1734529422955-57 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: created - tableName: class_features - - dropColumn: - columnName: last_updated - tableName: class_features - - dropColumn: - columnName: original - tableName: class_features - - dropColumn: - columnName: page - tableName: class_features - - changeSet: - id: 1734529422955-58 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: created - tableName: classes - - dropColumn: - columnName: last_updated - tableName: classes - - dropColumn: - columnName: page - tableName: classes - - dropColumn: - columnName: skill_available - tableName: classes - - changeSet: - id: 1734529422955-59 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: created - tableName: feats - - dropColumn: - columnName: last_updated - tableName: feats - - dropColumn: - columnName: original - tableName: feats - - dropColumn: - columnName: page - tableName: feats - - changeSet: - id: 1734529422955-72 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: year - tableName: books - diff --git a/src/main/resources/db/changelog/2025/01/04-01-update-users.yaml b/src/main/resources/db/changelog/2025/01/04-01-update-users.yaml deleted file mode 100644 index ba664542..00000000 --- a/src/main/resources/db/changelog/2025/01/04-01-update-users.yaml +++ /dev/null @@ -1,189 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1736022110591-1 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: name - tableName: users - - changeSet: - id: 1736022110591-2 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: email - constraintName: email - tableName: users - - changeSet: - id: 1736022110591-3 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addUniqueConstraint: - columnNames: username - constraintName: username - tableName: users - - changeSet: - id: 1736022110591-4 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addDefaultValue: - columnDataType: timestamp - columnName: created_at - defaultValueComputed: CURRENT_TIMESTAMP - tableName: users - - changeSet: - id: 1736022110591-5 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: VARCHAR(255) - columnName: email - tableName: users - validate: true - - changeSet: - id: 1736022110591-6 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addDefaultValue: - columnDataType: tinyint(1) - columnName: enabled - defaultValueNumeric: '0' - tableName: users - - changeSet: - id: 1736022110591-7 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: VARCHAR(255) - columnName: password - tableName: users - validate: true - - changeSet: - id: 1736022110591-8 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addDefaultValue: - columnDataType: timestamp - columnName: updated_at - defaultValueComputed: CURRENT_TIMESTAMP - tableName: users - - changeSet: - id: 1736022110591-9 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: VARCHAR(255) - columnName: username - tableName: users - validate: true - - changeSet: - id: 1736022110591-10 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - constraintName: fk_usemem_on_user - baseTableName: user_membership - - dropForeignKeyConstraint: - constraintName: fk_user_role_on_user - baseTableName: user_role - - dropForeignKeyConstraint: - constraintName: fk_usewailis_on_user - baseTableName: user_wait_list - - dropForeignKeyConstraint: - constraintName: FK_YOUTUBE_VIDEOS_ON_USER - baseTableName: youtube_videos - - changeSet: - id: 1736022110591-11 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - renameColumn: - columnDataType: char(36) - newColumnName: uuid - oldColumnName: id - tableName: users - - changeSet: - id: 1736022110591-20 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - renameColumn: - columnDataType: char(36) - newColumnName: user_uuid - oldColumnName: user_id - tableName: user_membership - - addForeignKeyConstraint: - constraintName: fk_usemem_on_user - baseTableName: user_membership - referencedTableName: users - baseColumnNames: user_uuid - referencedColumnNames: uuid - - changeSet: - id: 1736022110591-21 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - renameColumn: - columnDataType: char(36) - newColumnName: user_uuid - oldColumnName: user_id - tableName: user_role - - addForeignKeyConstraint: - constraintName: fk_user_role_on_user - baseTableName: user_role - referencedTableName: users - baseColumnNames: user_uuid - referencedColumnNames: uuid - - addColumn: - columns: - - column: - name: id - type: bigint - autoIncrement: true - constraints: - unique: true - nullable: false - primaryKey: true - tableName: user_role - - changeSet: - id: 1736022110591-22 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - renameColumn: - columnDataType: char(36) - newColumnName: user_uuid - oldColumnName: user_id - tableName: user_wait_list - - addForeignKeyConstraint: - constraintName: fk_usewailis_on_user - baseTableName: user_wait_list - referencedTableName: users - baseColumnNames: user_uuid - referencedColumnNames: uuid - - changeSet: - id: 1736022110591-23 - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - renameColumn: - columnDataType: char(36) - newColumnName: user_uuid - oldColumnName: user_id - tableName: youtube_videos - - addForeignKeyConstraint: - constraintName: FK_YOUTUBE_VIDEOS_ON_USER - baseTableName: youtube_videos - referencedTableName: users - baseColumnNames: user_uuid - referencedColumnNames: uuid diff --git a/src/main/resources/db/changelog/2025/01/04-02-insert-roles.yaml b/src/main/resources/db/changelog/2025/01/04-02-insert-roles.yaml deleted file mode 100644 index 1f321635..00000000 --- a/src/main/resources/db/changelog/2025/01/04-02-insert-roles.yaml +++ /dev/null @@ -1,35 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1 - author: svifty7 - changes: - - insert: - tableName: roles - columns: - - column: - name: name - value: USER - - insert: - tableName: roles - columns: - - column: - name: name - value: SUBSCRIBER - - insert: - tableName: roles - columns: - - column: - name: name - value: WRITER - - insert: - tableName: roles - columns: - - column: - name: name - value: MODERATOR - - insert: - tableName: roles - columns: - - column: - name: name - value: ADMIN diff --git a/src/main/resources/db/changelog/2025/01/05-01-create-one-time-tokens.yaml b/src/main/resources/db/changelog/2025/01/05-01-create-one-time-tokens.yaml deleted file mode 100644 index 48ceee73..00000000 --- a/src/main/resources/db/changelog/2025/01/05-01-create-one-time-tokens.yaml +++ /dev/null @@ -1,31 +0,0 @@ -databaseChangeLog: - - changeSet: - id: create-one-time-token - author: svifty7 - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - tableName: one_time_tokens - columns: - - column: - name: uuid - type: char(36) - constraints: - unique: true - nullable: false - primaryKey: true - - - column: - name: user_uuid - type: char(36) - constraints: - nullable: false - foreignKeyName: fk_one_time_token_on_user - referencedTableName: users - referencedColumnNames: uuid - - - column: - name: expiry_date - type: timestamp - constraints: - nullable: false diff --git a/src/main/resources/db/changelog/2025/01/09-01-updates.yaml b/src/main/resources/db/changelog/2025/01/09-01-updates.yaml deleted file mode 100644 index 07f669dd..00000000 --- a/src/main/resources/db/changelog/2025/01/09-01-updates.yaml +++ /dev/null @@ -1,543 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1736450098391-55 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: PRIMARY - name: tag_id - type: BIGINT - - column: - constraints: - nullable: false - primaryKey: true - primaryKeyName: PRIMARY - name: species_id - type: VARCHAR(255) - tableName: species_tags - - changeSet: - id: 1736450098391-56 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: link_image_url - type: varchar(255) - - column: - name: sizes - type: varchar(255) - tableName: species - - changeSet: - id: 1736450098391-58 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: url - type: varchar(255) - tableName: books - - changeSet: - id: 1736450098391-59 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: user_id - type: varchar(255) - tableName: sources - - changeSet: - id: 1736450098391-60 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addPrimaryKey: - columnNames: background_url, ability - constraintName: PRIMARY - tableName: background_abilities - - changeSet: - id: 1736450098391-61 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addPrimaryKey: - columnNames: background_url, skill - constraintName: PRIMARY - tableName: background_available_skills - - changeSet: - id: 1736450098391-62 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addPrimaryKey: - columnNames: class_url, skill - constraintName: PRIMARY - tableName: class_available_skills - - changeSet: - id: 1736450098391-63 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addPrimaryKey: - columnNames: class_url, ability - constraintName: PRIMARY - tableName: class_saving_throw_abilities - - changeSet: - id: 1736450098391-65 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createIndex: - columns: - - column: - name: class_feature_id - indexName: FKi6eh62qex9x4i3b59ygxbdngp - tableName: class_feature_tags - - changeSet: - id: 1736450098391-66 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createIndex: - columns: - - column: - name: feature_id - indexName: FKkvum3xonik2ng8jiru2kird5 - tableName: feature_tags - - changeSet: - id: 1736450098391-67 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createIndex: - columns: - - column: - name: book_id - indexName: FKnm8mi22mkfqgu9lbgcw1echrv - tableName: book_tags - - changeSet: - id: 1736450098391-68 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: species_id - baseTableName: species_tags - constraintName: FK35ol1gu91wj7infrcbe0vs0n0 - onDelete: NO ACTION - referencedColumnNames: url - referencedTableName: species - - createIndex: - columns: - - column: - name: species_id - indexName: FK35ol1gu91wj7infrcbe0vs0n0 - tableName: species_tags - - changeSet: - id: 1736450098391-69 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: tag_id - baseTableName: species_tags - constraintName: FK6sj45nsx2alkpqwxehuin7q1v - onDelete: NO ACTION - referencedColumnNames: id - referencedTableName: tags - - changeSet: - id: 1736450098391-70 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: size - tableName: species - - changeSet: - id: 1736450098391-5 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: category - newDataType: ENUM('ORIGIN', 'GENERAL', 'EPIC_BOON', 'FIGHTING_STYLE') - tableName: feats - - changeSet: - id: 1736450098391-6 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created - newDataType: datetime - tableName: youtube_videos - - changeSet: - id: 1736450098391-7 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: backgrounds - - changeSet: - id: 1736450098391-8 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: books - - changeSet: - id: 1736450098391-9 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: class_features - - changeSet: - id: 1736450098391-10 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: classes - - changeSet: - id: 1736450098391-11 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: feats - - changeSet: - id: 1736450098391-12 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: sources - - changeSet: - id: 1736450098391-13 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: species - - changeSet: - id: 1736450098391-14 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: species_features - - changeSet: - id: 1736450098391-15 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: user_party - - changeSet: - id: 1736450098391-16 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: created_at - newDataType: datetime - tableName: users - - changeSet: - id: 1736450098391-17 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: enabled - newDataType: BOOLEAN(1) - tableName: users - - changeSet: - id: 1736450098391-18 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: generation_date - newDataType: datetime - tableName: invitation - - changeSet: - id: 1736450098391-20 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: backgrounds - - changeSet: - id: 1736450098391-21 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: class_features - - changeSet: - id: 1736450098391-22 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: classes - - changeSet: - id: 1736450098391-23 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: feats - - changeSet: - id: 1736450098391-24 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: species - - changeSet: - id: 1736450098391-25 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: is_hidden_entity - newDataType: BOOLEAN(1) - tableName: species_features - - changeSet: - id: 1736450098391-27 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: on_index - newDataType: BOOLEAN(1) - tableName: menu - - changeSet: - id: 1736450098391-28 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: BOOLEAN(1) - columnName: on_index - tableName: menu - validate: true - - changeSet: - id: 1736450098391-29 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: only_dev - newDataType: BOOLEAN(1) - tableName: menu - - changeSet: - id: 1736450098391-30 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addNotNullConstraint: - columnDataType: BOOLEAN(1) - columnName: only_dev - tableName: menu - validate: true - - changeSet: - id: 1736450098391-31 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: page - newDataType: INT - tableName: sources - - changeSet: - id: 1736450098391-35 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: tag_type - newDataType: ENUM('TAG_BOOK', 'TAG_FEATURE', 'TAG_SPECIES') - tableName: tags - - changeSet: - id: 1736450098391-37 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: type - newDataType: ENUM('OFFICIAL', 'MODULE', 'SETTING', 'TEST', 'THIRD_PARTY', 'CUSTOM') - tableName: books - - changeSet: - id: 1736450098391-38 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: type - newDataType: ENUM('ABERRATION', 'BEAST', 'CELESTIAL', 'CONSTRUCT', 'DRAGON', 'ELEMENTAL', 'FEY', 'FIEND', 'GIANT', 'HUMANOID', 'MONSTROSITY', 'PLANT', 'UNDEAD', 'SLIME', 'SWARM') - tableName: species - - changeSet: - id: 1736450098391-39 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: backgrounds - - changeSet: - id: 1736450098391-40 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: books - - changeSet: - id: 1736450098391-41 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: class_features - - changeSet: - id: 1736450098391-42 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: classes - - changeSet: - id: 1736450098391-43 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: feats - - changeSet: - id: 1736450098391-44 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: sources - - changeSet: - id: 1736450098391-45 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: species - - changeSet: - id: 1736450098391-46 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: species_features - - changeSet: - id: 1736450098391-47 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: user_party - - changeSet: - id: 1736450098391-48 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - modifyDataType: - columnName: updated_at - newDataType: datetime - tableName: users - - changeSet: - id: 1736450098391-50 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropPrimaryKey: - tableName: book_tags - - addPrimaryKey: - columnNames: tag_id, book_id - constraintName: PRIMARY - tableName: book_tags - - changeSet: - id: 1736450098391-52 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropPrimaryKey: - tableName: class_feature_tags - - addPrimaryKey: - columnNames: tag_id, class_feature_id - constraintName: PRIMARY - tableName: class_feature_tags - - changeSet: - id: 1736450098391-54 - author: '1' - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropPrimaryKey: - tableName: feature_tags - - addPrimaryKey: - columnNames: tag_id, feature_id - constraintName: PRIMARY - tableName: feature_tags diff --git a/src/main/resources/db/changelog/2025/03/01-01-changelog.yaml b/src/main/resources/db/changelog/2025/03/01-01-changelog.yaml deleted file mode 100644 index 241a7aea..00000000 --- a/src/main/resources/db/changelog/2025/03/01-01-changelog.yaml +++ /dev/null @@ -1,356 +0,0 @@ -databaseChangeLog: - - changeSet: - id: 1740848930202-11 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: armors - constraintName: FK_ARMORS_ON_SOURCE - - changeSet: - id: 1740848930202-12 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: equipments - constraintName: FK_EQUIPMENTS_ON_SOURCE - - changeSet: - id: 1740848930202-13 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: magic_items - constraintName: FK_MAGIC_ITEMS_ON_SOURCE - - changeSet: - id: 1740848930202-14 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: weapons - constraintName: FK_WEAPONS_ON_SOURCE - - changeSet: - id: 1740848930202-15 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: entity_tags - constraintName: FKc4jxnn7jwnj3pfhfr18667v9t - - changeSet: - id: 1740848930202-16 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: book_tags - constraintName: fk_book_tags_on_book - - changeSet: - id: 1740848930202-17 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: book_tags - constraintName: fk_book_tags_on_tag - - changeSet: - id: 1740848930202-18 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: class_feature_tags - constraintName: fk_clafeatag_on_class_feature - - changeSet: - id: 1740848930202-19 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: class_feature_tags - constraintName: fk_clafeatag_on_tag - - changeSet: - id: 1740848930202-20 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: feature_tags - constraintName: fk_featag_on_species_feature - - changeSet: - id: 1740848930202-21 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: feature_tags - constraintName: fk_featag_on_tag - - changeSet: - id: 1740848930202-22 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_membership - constraintName: fk_usemem_on_user - - changeSet: - id: 1740848930202-23 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_membership - constraintName: fk_usemem_on_user_party - - changeSet: - id: 1740848930202-24 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_role - constraintName: fk_user_role_on_role - - changeSet: - id: 1740848930202-25 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_role - constraintName: fk_user_role_on_user - - changeSet: - id: 1740848930202-26 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_wait_list - constraintName: fk_usewailis_on_user - - changeSet: - id: 1740848930202-27 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropForeignKeyConstraint: - baseTableName: user_wait_list - constraintName: fk_usewailis_on_user_party - - changeSet: - id: 1740848930202-7 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createTable: - columns: - - column: - constraints: - nullable: false - name: species_url - type: VARCHAR(255) - - column: - name: size - type: VARCHAR(255) - tableName: species_size - - changeSet: - id: 1740848930202-8 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: text - type: VARCHAR(255) - tableName: species - - changeSet: - id: 1740848930202-9 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - createIndex: - columns: - - column: - name: name - - column: - name: english - - column: - name: alternative - indexName: name_index - tableName: species - - changeSet: - id: 1740848930202-10 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addForeignKeyConstraint: - baseColumnNames: species_url - baseTableName: species_size - constraintName: fk_species_size_on_species - referencedColumnNames: url - referencedTableName: species - - changeSet: - id: 1740848930202-30 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: armors - - changeSet: - id: 1740848930202-31 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: book_tags - - changeSet: - id: 1740848930202-32 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: class_feature_tags - - changeSet: - id: 1740848930202-33 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: entity_tags - - changeSet: - id: 1740848930202-34 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: equipments - - changeSet: - id: 1740848930202-35 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: feature_tags - - changeSet: - id: 1740848930202-36 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: gods - - changeSet: - id: 1740848930202-37 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: magic_items - - changeSet: - id: 1740848930202-38 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: screens - - changeSet: - id: 1740848930202-39 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: user_membership - - changeSet: - id: 1740848930202-40 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: user_role - - changeSet: - id: 1740848930202-41 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: user_wait_list - - changeSet: - id: 1740848930202-42 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropTable: - cascadeConstraints: true - tableName: weapons - - changeSet: - id: 1740848930202-43 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropColumn: - columnName: size - tableName: species - - dropColumn: - columnName: sizes - tableName: species - - dropColumn: - columnName: type - tableName: species - - changeSet: - id: 1740848930202-1 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropNotNullConstraint: - columnDataType: int - columnName: climb - tableName: species - - changeSet: - id: 1740848930202-2 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropNotNullConstraint: - columnDataType: int - columnName: dark_vision - tableName: species - - changeSet: - id: 1740848930202-3 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropNotNullConstraint: - columnDataType: int - columnName: fly - tableName: species - - changeSet: - id: 1740848930202-4 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - dropNotNullConstraint: - columnDataType: int - columnName: swim - tableName: species - - changeSet: - id: 1740848930202-6 - author: ylp - objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS - changes: - - addColumn: - columns: - - column: - name: type - type: VARCHAR(255) - tableName: species - diff --git a/src/main/resources/db/changelog/2025/03/01-init_users_and_tokens_tables.yaml b/src/main/resources/db/changelog/2025/03/01-init_users_and_tokens_tables.yaml new file mode 100644 index 00000000..aba22565 --- /dev/null +++ b/src/main/resources/db/changelog/2025/03/01-init_users_and_tokens_tables.yaml @@ -0,0 +1,174 @@ +databaseChangeLog: + - changeSet: + id: 1740861748847-1 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - createTable: + columns: + - column: + constraints: + nullable: false + primaryKey: true + primaryKeyName: pk_one_time_tokens + name: uuid + type: UUID + - column: + constraints: + nullable: false + name: user_uuid + type: UUID + - column: + name: expiry_date + type: DATETIME + tableName: one_time_tokens + - changeSet: + id: 1740861748847-2 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - createTable: + columns: + - column: + autoIncrement: true + constraints: + nullable: false + primaryKey: true + primaryKeyName: pk_roles + name: id + type: BIGINT + - column: + constraints: + nullable: false + name: name + type: VARCHAR(255) + tableName: roles + - changeSet: + id: 1740861748847-3 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - createTable: + columns: + - column: + constraints: + nullable: false + name: role_id + type: BIGINT + - column: + constraints: + nullable: false + name: user_uuid + type: UUID + tableName: user_role + - changeSet: + id: 1740861748847-4 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - createTable: + columns: + - column: + constraints: + nullable: false + primaryKey: true + primaryKeyName: pk_users + name: uuid + type: UUID + - column: + name: created_at + type: DATETIME + - column: + name: updated_at + type: DATETIME + - column: + constraints: + nullable: false + name: username + type: VARCHAR(255) + - column: + constraints: + nullable: false + name: email + type: VARCHAR(255) + - column: + constraints: + nullable: false + name: password + type: VARCHAR(255) + - column: + constraints: + nullable: false + name: enabled + type: BOOLEAN + tableName: users + - changeSet: + id: 1740861748847-5 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addUniqueConstraint: + columnNames: user_uuid + constraintName: uc_one_time_tokens_user_uuid + tableName: one_time_tokens + - changeSet: + id: 1740861748847-6 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addUniqueConstraint: + columnNames: name + constraintName: uc_roles_name + tableName: roles + - changeSet: + id: 1740861748847-7 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addUniqueConstraint: + columnNames: email + constraintName: uc_users_email + tableName: users + - changeSet: + id: 1740861748847-8 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addUniqueConstraint: + columnNames: username + constraintName: uc_users_username + tableName: users + - changeSet: + id: 1740861748847-9 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addForeignKeyConstraint: + baseColumnNames: user_uuid + baseTableName: one_time_tokens + constraintName: FK_ONE_TIME_TOKENS_ON_USER_UUID + referencedColumnNames: uuid + referencedTableName: users + - changeSet: + id: 1740861748847-10 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addForeignKeyConstraint: + baseColumnNames: role_id + baseTableName: user_role + constraintName: fk_user_role_on_role + referencedColumnNames: id + referencedTableName: roles + - changeSet: + id: 1740861748847-11 + author: ylp + objectQuotingStrategy: QUOTE_ONLY_RESERVED_WORDS + changes: + - addForeignKeyConstraint: + baseColumnNames: user_uuid + baseTableName: user_role + constraintName: fk_user_role_on_user + referencedColumnNames: uuid + referencedTableName: users + diff --git a/src/main/resources/db/changelog/db.changelog-master.yaml b/src/main/resources/db/changelog/db.changelog-master.yaml index 61017f1a..99c89791 100644 --- a/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/src/main/resources/db/changelog/db.changelog-master.yaml @@ -1,7 +1,4 @@ databaseChangeLog: - - includeAll: - path: /2024 - relativeToChangelogFile: true - includeAll: path: /2025