aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/db/specific/h2/V1.10__favorites_user_uri.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/db/specific/h2/V1.10__favorites_user_uri.sql')
-rw-r--r--src/main/resources/db/specific/h2/V1.10__favorites_user_uri.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/resources/db/specific/h2/V1.10__favorites_user_uri.sql b/src/main/resources/db/specific/h2/V1.10__favorites_user_uri.sql
new file mode 100644
index 00000000..8f382398
--- /dev/null
+++ b/src/main/resources/db/specific/h2/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