Skip to content
Snippets Groups Projects
Commit eabad463 authored by Auri's avatar Auri
Browse files

fixup! fixup! sql/v1tov2: migrate the database to schema v2

parent aafa8440
No related branches found
No related tags found
1 merge request!4Draft: Migrate the database to schema v2
......@@ -154,15 +154,15 @@ ALTER TABLE user_
ALTER COLUMN email SET DATA TYPE emailaddr,
ALTER COLUMN ratelimit_bucket_capacity SET NOT NULL,
ALTER COLUMN ratelimit_bucket_capacity SET DEFAULT -1,
ADD COLUMN password bytea,
ADD COLUMN created_on timestamp with time zone NOT NULL DEFAULT now(),
ADD UNIQUE (username);
INSERT INTO user_ (id, username, email, is_admin, is_blocked, created_on)
INSERT INTO user_ (id, username, email, is_admin, created_on)
VALUES ('d4d422b7-61b6-4e25-b1fd-e4197dd0dd1b',
'owo',
'system@whats-th.is',
true,
false,
'2016-12-10T04:00:34Z');
ALTER TABLE tokens RENAME TO legacy_token;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment