gamenight/backend/migrations/2022-06-04-141858_registration_tokens/up.sql

12 lines
259 B
MySQL
Raw Permalink Normal View History

-- Your SQL goes here
create table registration_tokens (
id UUID PRIMARY KEY,
token CHARACTER(32) NOT NULL,
single_use BOOLEAN NOT NULL,
expires TIMESTAMPTZ
);
ALTER TABLE gamenight
ALTER datetime TYPE TIMESTAMPTZ using datetime::timestamp;