Skip to content

Commit

Permalink
Fix inconcistency with migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AltF02 committed Jul 19, 2021
1 parent 4987ec3 commit a7be55d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions migrations/20210719140525_launches.sql
Original file line number Diff line number Diff line change
@@ -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
);

Expand Down
16 changes: 8 additions & 8 deletions migrations/20210719140820_guilds.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a7be55d

Please sign in to comment.