diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/Pg-upgrade-2.6.18-2.6.19.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/Pg-upgrade-2.6.18-2.6.19.sql b/sql/Pg-upgrade-2.6.18-2.6.19.sql index b60aadac..dd8583eb 100644 --- a/sql/Pg-upgrade-2.6.18-2.6.19.sql +++ b/sql/Pg-upgrade-2.6.18-2.6.19.sql @@ -138,3 +138,7 @@ ALTER TABLE tax ALTER COLUMN pass SET NOT NULL; ALTER TABLE tax ADD COLUMN taxmodule_id int REFERENCES taxmodule DEFAULT 1; UPDATE tax SET taxmodule_id = 1; ALTER TABLE tax ALTER COLUMN taxmodule_id SET NOT NULL; + +-- Fixed session table -- +ALTER TABLE session ADD CONSTRAINT session_token_check check (length(token::text) = 32); + |