summaryrefslogtreecommitdiff
path: root/SQL/postgres.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-28 10:34:33 +0000
committeralecpl <alec@alec.pl>2010-04-28 10:34:33 +0000
commite2402ef99af447b7cc30d661e62450cbb04b202b (patch)
treed118c0b7429404424ff6d83d906fbe25121d21fc /SQL/postgres.update.sql
parent0f3764e59223d8e9c87f30ce85425c00422ff25d (diff)
- Set DEFAULT NULL for users.last_login
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r--SQL/postgres.update.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index 762f5fbc7..bbfbcc9c6 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -76,3 +76,8 @@ CREATE TABLE contactgroupmembers (
created timestamp with time zone DEFAULT now() NOT NULL,
PRIMARY KEY (contactgroup_id, contact_id)
);
+
+-- Updates from version 0.4-beta
+
+ALTER TABLE users ALTER last_login DROP NOT NULL;
+ALTER TABLE users ALTER last_login SET DEFAULT NULL;