Skip to content

Commit

Permalink
Merge pull request #6523 from ita-social-projects/create-greencity-admin
Browse files Browse the repository at this point in the history
Fixed problem
  • Loading branch information
ospodaryk authored Oct 6, 2023
2 parents d133122 + f7bc5cc commit b8d12d4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dao/src/main/resources/db/changelog/db.changelog-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,7 @@
<include file="db/changelog/logs/ch-update-values-shopping-list-items-Mokhnatska.xml"/>
<include file="db/changelog/logs/ch-add-values-achievement_categories-Spodaryk.xml"/>
<include file="db/changelog/logs/ch-add-value-achievements-Spodaryk.xml"/>
<include file="db/changelog/logs/ch-insert-into-users-admin-Spodaryk.xml"/>

</databaseChangeLog>

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
<changeSet id="Spodaryk-28" author="Oksana Spodaryk">
<preConditions onFail="MARK_RAN">
<not>
<sqlCheck expectedResult="1">
SELECT COUNT(*) FROM users WHERE email = '[email protected]';
</sqlCheck>
</not>
</preConditions>

<insert tableName="users">
<column name="date_of_registration" value="1970-01-01 00:00:00.000000"/>
<column name="email" value="[email protected]"/>
<column name="email_notification" value="0"/>
<column name="name" value="GREENCITY"/>
<column name="role" value="ROLE_ADMIN"/>
<column name="user_status" value="2"/>
<column name="refresh_token_key" value="e59b50f5-53c2-48e5-9439-b171634ffdd0"/>
<column name="rating" value="0"/>
<column name="first_name" value="ADMIN"/>
<column name="city" value="Kyiv"/>
<column name="show_location" value="true"/>
<column name="show_eco_place" value="true"/>
<column name="show_shopping_list" value="true"/>
<column name="language_id" value="2"/>
<column name="uuid" value="550e8400-e29b-41d4-a716-446655440000"/>
<column name="phone_number" value="+380979797979"/>
</insert>
</changeSet>
</databaseChangeLog>

0 comments on commit b8d12d4

Please sign in to comment.