Merge branch '122-bug-leader-grants' into 'dev'

Resolve "Bug: не отображается cписок грантов"

Closes #122

See merge request romanov73/ng-tracker!88
This commit is contained in:
Anton Romanov 2019-05-08 09:25:37 +00:00
commit 09aa3d0084
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.1" 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.1.xsd">
<changeSet author="tanya" id="20190507_000001-1">
<sql>
update grants
set leader_id =
(select u.id
from users u
where u.last_name = 'Романов' AND u.first_name = 'Антон');
</sql>
</changeSet>
</databaseChangeLog>

View File

@ -38,4 +38,5 @@
<include file="db/changelog-20190428_000000-schema.xml"/> <include file="db/changelog-20190428_000000-schema.xml"/>
<include file="db/changelog-20190430_000000-schema.xml"/> <include file="db/changelog-20190430_000000-schema.xml"/>
<include file="db/changelog-20190505_000000-schema.xml"/> <include file="db/changelog-20190505_000000-schema.xml"/>
<include file="db/changelog-20190507_000001-schema.xml"/>
</databaseChangeLog> </databaseChangeLog>