diff --git a/pom.xml b/pom.xml index 88282ee..3c096e9 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,6 @@ 1.0-SNAPSHOT - 11 - 11 UTF-8 @@ -52,6 +50,10 @@ spring-boot-starter-test test + + org.liquibase + liquibase-core + \ No newline at end of file diff --git a/src/main/resources/db.changelog/1.0/2024-10-20--0001-code.xml b/src/main/resources/db.changelog/1.0/2024-10-20--0001-code.xml new file mode 100644 index 0000000..3ce9edc --- /dev/null +++ b/src/main/resources/db.changelog/1.0/2024-10-20--0001-code.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db.changelog/1.0/2024-10-20--0002-employee.xml b/src/main/resources/db.changelog/1.0/2024-10-20--0002-employee.xml new file mode 100644 index 0000000..2991ba2 --- /dev/null +++ b/src/main/resources/db.changelog/1.0/2024-10-20--0002-employee.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db.changelog/data/2024-10-20--0001-code-data.xml b/src/main/resources/db.changelog/data/2024-10-20--0001-code-data.xml new file mode 100644 index 0000000..4d91bcc --- /dev/null +++ b/src/main/resources/db.changelog/data/2024-10-20--0001-code-data.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db.changelog/data/2024-10-20--0002-employee-data.xml b/src/main/resources/db.changelog/data/2024-10-20--0002-employee-data.xml new file mode 100644 index 0000000..1fb53f5 --- /dev/null +++ b/src/main/resources/db.changelog/data/2024-10-20--0002-employee-data.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db.changelog/data/csv/2024-10-20--0001-code-data.csv b/src/main/resources/db.changelog/data/csv/2024-10-20--0001-code-data.csv new file mode 100644 index 0000000..72062ec --- /dev/null +++ b/src/main/resources/db.changelog/data/csv/2024-10-20--0001-code-data.csv @@ -0,0 +1,6 @@ +id;value +1;1234567890123456789 +2;9223372036854775807 +3;1122334455667788990 +4;998877665544332211 +5;5566778899001122334 \ No newline at end of file diff --git a/src/main/resources/db.changelog/data/csv/2024-10-20--0002-employee-data.csv b/src/main/resources/db.changelog/data/csv/2024-10-20--0002-employee-data.csv new file mode 100644 index 0000000..fe39a58 --- /dev/null +++ b/src/main/resources/db.changelog/data/csv/2024-10-20--0002-employee-data.csv @@ -0,0 +1,5 @@ +id;login;name;photo;position;last_visit +1;pivanov;Иванов Петр Федорович;https://funnyducks.ru/upload/iblock/0cd/0cdeb7ec3ed6fddda0f90fccee05557d.jpg;Разработчик;2024-02-12T08:30:00 +2;ipetrov;Петров Иван Константинович;https://funnyducks.ru/upload/iblock/0cd/0cdeb7ec3ed6fddda0f90fccee05557d.jpg;Аналитик;2024-02-13T08:35:00 +3;asemenov;Семенов Анатолий Анатольевич;https://funnyducks.ru/upload/iblock/0cd/0cdeb7ec3ed6fddda0f90fccee05557d.jpg;Разработчик;2024-02-13T08:31:00 +4;afedorov;Федоров Александр Сергеевич;https://funnyducks.ru/upload/iblock/0cd/0cdeb7ec3ed6fddda0f90fccee05557d.jpg;Тестировщик;2024-02-12T08:36:00 \ No newline at end of file diff --git a/src/main/resources/db.changelog/db.changelog-master.xml b/src/main/resources/db.changelog/db.changelog-master.xml new file mode 100644 index 0000000..5c0ea54 --- /dev/null +++ b/src/main/resources/db.changelog/db.changelog-master.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file