Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[auth-2] Добавить liquibase #26

Open
artemptushkin opened this issue Apr 6, 2022 · 1 comment
Open

[auth-2] Добавить liquibase #26

artemptushkin opened this issue Apr 6, 2022 · 1 comment
Assignees

Comments

@artemptushkin
Copy link
Collaborator

artemptushkin commented Apr 6, 2022

Описание

Необходимо добавить liquibase в сэтап приложения

Требования

  1. В classpath приложения содержатся liquibase ресурсы, которые будут использованы в runtime для миграции базы данных
  2. Стартуя, приложение "накатывает" (liquibase update) изменения на целевую базу данных, см https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.data-initialization.migration-tool.liquibase
  3. Базовый сэт изменений включает:
    • создание базы данных (схемы), вроде мы это вручную делаем сейчас
    • создание таблицы. заменяем hibernate auto-ddl update на none, используя liquibase, то есть выключаем первый вообще - все изменения базы данных в будущем должны идти через liquibase
  4. Проект содержчик changesets для:
  • выполнение всех команд из файла schema.sql
  • insert двух ролей
  • insert одного базового admin пользователя

Критерий:

  1. Тесты должны проходит (на пункт 4.1).
  2. Локально проверить.
@artemptushkin
Copy link
Collaborator Author

@bzalyaliev Я бы оценил в 3 стори поинта, но у тебя больше времени займет, думаю

@artemptushkin artemptushkin changed the title Добавить liquibase [auth-2] Добавить liquibase Apr 27, 2022
@artemptushkin artemptushkin pinned this issue Apr 27, 2022
@bzalyaliev bzalyaliev self-assigned this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants