Skip to content

Commit 0439ed2

Browse files
committed
Add CREATED_AT and CREATED_BY columns.
1 parent d874b32 commit 0439ed2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/liquibase/version/0.4/2016-09-28--add_creator_data_to_series_sales.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
77

88
<changeSet id="add-creator-columns-to-series_sales_table" author="cssru" context="scheme">
9+
<comment>We use this way because of MySQL version supported by TravisCI (<5.6.6)</comment>
910

1011
<addColumn tableName="series_sales">
1112
<column name="created_at" type="DATETIME" />
1213
<column name="created_by" type="INTEGER"
13-
defaultValueComputed="SELECT u.id FROM users u WHERE u.role = 'ADMIN' LIMIT 1">
14+
defaultValueComputed="(SELECT u.id FROM users u WHERE u.role = 'ADMIN' LIMIT 1)">
1415
<constraints nullable="false"
1516
references="users(id)"
1617
foreignKeyName="fk_series_sales_users_id" />

0 commit comments

Comments
 (0)