mirror of
https://github.com/Example-uPagge/liquibase.git
synced 2024-06-14 12:22:25 +03:00
create view
This commit is contained in:
parent
66b87d8014
commit
3f1a6dc23c
@ -35,4 +35,15 @@
|
||||
referencedTableName="person" referencedColumnNames="id" onUpdate="CASCADE"/>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="create-view-book-author" author="uPagge">
|
||||
<createView viewName="author_and_book">
|
||||
SELECT p.id as person_id,
|
||||
p.name as person_name,
|
||||
b.id as book_id,
|
||||
b.name as book_name
|
||||
FROM person p
|
||||
LEFT JOIN book b on p.id = b.author_id
|
||||
</createView>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
Loading…
Reference in New Issue
Block a user