Skip to content

Instantly share code, notes, and snippets.

View TreatHunter's full-sized avatar
💭
Coding is fun!

TreatHunter

💭
Coding is fun!
View GitHub Profile
@TreatHunter
TreatHunter / LiquibaseArticle.db.changelog-0.4-updateOfficesWithLoadUpdateData.yaml
Last active May 24, 2023 21:13
Change set с примером обновления списка из csv в таблицу для статьи
databaseChangeLog:
- logicalFilePath: db/changelog/migrations/db.changelog-0.4-updateOfficesWithLoadUpdateData.yaml
- changeSet:
id: 004_update_simbirsoft_offices_table_with_LoadUpdateData
author: TreatHunter
changes:
- loadUpdateData:
columns:
- column:
index: 4
@TreatHunter
TreatHunter / LiquibaseArticle.db.changelog-0.2-importToSimbirsoftOfficesTable.yaml
Last active May 24, 2023 21:13
Change set с примером загрузки списка из csv в таблицу для статьи
databaseChangeLog:
- logicalFilePath: db/changelog/migrations/db.changelog-0.2-importToSimbirsoftOfficesTable.yaml
- changeSet:
id: 002_import_csv_to_simbirsoft_offices_table
author: TreatHunter
changes:
- loadData:
columns:
- column:
index: 4 # индекс обозначает порядковый номер столца csv
@TreatHunter
TreatHunter / LiquibaseArticle.db.changelog-0.1-addSimbirsoftOfficesTable.yaml
Created May 24, 2023 18:41
Change set создания таблицы для статьи
databaseChangeLog:
- logicalFilePath: db/changelog/migrations/db.changelog-0.1-addSimbirsoftOfficesTable.yaml
- changeSet:
id: 001_create_simbirsoft_offices_table
author: TreatHunter
changes:
- createTable:
tableName: simbirsoft_offices
columns:
- column:
@TreatHunter
TreatHunter / LiquibaseArticle.application.yaml
Last active May 24, 2023 18:40
Настройки для отключения автоматического создания таблиц Hibernate'ом, чтобы он не мешал Liquibase для статьи
spring:
jpa:
hibernate:
ddl-auto: validate