summaryrefslogtreecommitdiff
path: root/SQL/postgres
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-28 14:30:34 +0200
committerAleksander Machniak <alec@alec.pl>2013-04-28 14:30:34 +0200
commit311e82652ae0f2dd9792610175a1ba19cd71c0af (patch)
treea4fda50bbc1e7c2ff1277bd907e157aa04b40f8c /SQL/postgres
parent4cb8ced1a4ca32c6837e848dbfc585892b802f67 (diff)
Add lost files for "db_prefix related changes" commit
Diffstat (limited to 'SQL/postgres')
-rw-r--r--SQL/postgres/2013042700.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/SQL/postgres/2013042700.sql b/SQL/postgres/2013042700.sql
new file mode 100644
index 000000000..bbd567515
--- /dev/null
+++ b/SQL/postgres/2013042700.sql
@@ -0,0 +1,14 @@
+ALTER SEQUENCE user_ids RENAME TO users_seq;
+ALTER TABLE users ALTER COLUMN user_id SET DEFAULT nextval('users_seq'::text);
+
+ALTER SEQUENCE identity_ids RENAME TO identities_seq;
+ALTER TABLE identities ALTER COLUMN identity_id SET DEFAULT nextval('identities_seq'::text);
+
+ALTER SEQUENCE contact_ids RENAME TO contacts_seq;
+ALTER TABLE contacts ALTER COLUMN contact_id SET DEFAULT nextval('contacts_seq'::text);
+
+ALTER SEQUENCE contactgroups_ids RENAME TO contactgroups_seq;
+ALTER TABLE contactgroups ALTER COLUMN contactgroup_id SET DEFAULT nextval('contactgroups_seq'::text);
+
+ALTER SEQUENCE search_ids RENAME TO searches_seq;
+ALTER TABLE searches ALTER COLUMN search_id SET DEFAULT nextval('searches_seq'::text);