diff --git a/migrations/20210719140525_launches.sql b/migrations/20210719140525_launches.sql index d45ccb8..63ef89d 100644 --- a/migrations/20210719140525_launches.sql +++ b/migrations/20210719140525_launches.sql @@ -1,14 +1,14 @@ CREATE TABLE IF NOT EXISTS astra.launches ( launch_id TEXT NOT NULL - constraint launches_pk - primary key, + CONSTRAINT launches_pk + PRIMARY KEY, name TEXT NOT NULL, net TIMESTAMP WITH TIME ZONE NOT NULL, vid_url TEXT, image_url TEXT, - dispatched boolean default false NOT NULL, - status integer NOT NULL, + dispatched BOOLEAN DEFAULT FALSE NOT NULL, + status INTEGER NOT NULL, description TEXT ); diff --git a/migrations/20210719140820_guilds.sql b/migrations/20210719140820_guilds.sql index 1ee671f..f136a94 100644 --- a/migrations/20210719140820_guilds.sql +++ b/migrations/20210719140820_guilds.sql @@ -1,13 +1,13 @@ CREATE TABLE IF NOT EXISTS astra.guilds ( - guild_id bigint NOT NULL - constraint guilds_pk - primary key, - channel_id bigint NOT NULL, - active boolean DEFAULT TRUE NOT NULL, - launches boolean DEFAULT TRUE NOT NULL, - apod boolean DEFAULT TRUE NOT NULL, - events boolean DEFAULT false NOT NULL + guild_id BIGINT NOT NULL + CONSTRAINT guilds_pk + PRIMARY KEY, + channel_id BIGINT NOT NULL, + active BOOLEAN DEFAULT TRUE NOT NULL, + launches BOOLEAN DEFAULT TRUE NOT NULL, + apod BOOLEAN DEFAULT TRUE NOT NULL, + events BOOLEAN DEFAULT false NOT NULL ); ALTER TABLE astra.guilds