make db upgrade work

to use this branch:
===================

- git co master
- ./run_regression -> abort during tests
- git co multiple_email
- ./dba/update-davical-database --dbname=regression
This commit is contained in:
Florian Schlichting 2021-02-05 15:53:23 +08:00
parent ee8a751add
commit 0a6d34a929
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ GRANT SELECT,INSERT,UPDATE,DELETE
ON freebusy_ticket
ON usr
ON usr_setting
ON usr_emails
ON roles
ON role_member
ON session

View File

@ -27,7 +27,7 @@ INSERT INTO usr_emails (user_no, email)
SELECT user_no, email FROM usr WHERE email IS NOT NULL AND email <> '';
ALTER TABLE usr
DROP COLUMN email;
DROP COLUMN email CASCADE;
-- http://blogs.transparent.com/polish/names-of-the-months-and-their-meaning/
SELECT new_db_revision(1,3,4, 'Kwiecień' );