We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42874c commit a0a439aCopy full SHA for a0a439a
src/main/resources/liquibase/version/0.4/2015-07-07--salt_and_hash.xml
@@ -15,7 +15,14 @@
15
<changeSet id="increase-length-of-hash-column-in-users-table" author="php-coder" context="scheme">
16
<comment>Increases length of hash column in users table</comment>
17
18
- <modifyDataType tableName="users" columnName="hash" newDataType="VARCHAR(60)" />
+ <!--
19
+ We can't use modifyDataType because it looses not null setting:
20
+ http://forum.liquibase.org/topic/warning-of-losing-primary-key-autoincrement-for-mysql
21
+ -->
22
+ <sql>
23
+ ALTER TABLE users
24
+ MODIFY COLUMN hash VARCHAR(60) NOT NULL
25
+ </sql>
26
27
</changeSet>
28
0 commit comments