You've already forked AstralRinth
forked from didirus/AstralRinth
Authentication workflow complete, add database link
This commit is contained in:
4
migrations/20200928020509_states.sql
Normal file
4
migrations/20200928020509_states.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE states (
|
||||
id bigint PRIMARY KEY,
|
||||
url varchar(500)
|
||||
);
|
||||
4
migrations/20200928033759_edit-states.sql
Normal file
4
migrations/20200928033759_edit-states.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Add migration script here
|
||||
ALTER TABLE states
|
||||
|
||||
ADD COLUMN expires timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP + interval '1 hour';
|
||||
3
migrations/20200928053955_make-url-not-null.sql
Normal file
3
migrations/20200928053955_make-url-not-null.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Add migration script here
|
||||
ALTER TABLE states
|
||||
ALTER COLUMN url SET NOT NULL;
|
||||
Reference in New Issue
Block a user