diff options
author | Vitaly Takmazov | 2018-10-08 13:02:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-08 13:02:06 +0300 |
commit | 2ae9bb8e420d2c68fef9215fbed6d15c3a434b2e (patch) | |
tree | 75851e8d1233b4298fcfbea7a3c5dd94701799c1 /juick-server/src/main/resources/db | |
parent | 5e3bb9067b3052c0805b7b1d59215f2bd4b73905 (diff) |
user_uri in favorites
Diffstat (limited to 'juick-server/src/main/resources/db')
-rw-r--r-- | juick-server/src/main/resources/db/migration/V1.10__favorites_user_uri.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-server/src/main/resources/db/migration/V1.10__favorites_user_uri.sql b/juick-server/src/main/resources/db/migration/V1.10__favorites_user_uri.sql new file mode 100644 index 00000000..8f382398 --- /dev/null +++ b/juick-server/src/main/resources/db/migration/V1.10__favorites_user_uri.sql @@ -0,0 +1,3 @@ +ALTER TABLE favorites ADD COLUMN user_uri char(255) DEFAULT NULL; +UPDATE favorites SET user_uri='' WHERE user_uri IS NULL; +ALTER TABLE favorites MODIFY COLUMN user_uri char(255) NOT NULL DEFAULT '';
\ No newline at end of file |