Skip to content

Commit

Permalink
separate out down migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitesh Shah committed Dec 17, 2024
1 parent e7c923d commit 711e9f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 10 additions & 0 deletions resources/migrations/20220517140033-init.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DROP table if exists channel CASCADE;
--;;
DROP table if exists member CASCADE;
--;;
DROP table if exists reaction CASCADE;
--;;
DROP table if exists file CASCADE;
--;;
DROP table if exists message CASCADE;
--;;
11 changes: 0 additions & 11 deletions resources/migrations/20220517140033-init.up.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
DROP table if exists channel CASCADE;
--;;
DROP table if exists member CASCADE;
--;;
DROP table if exists reaction CASCADE;
--;;
DROP table if exists file CASCADE;
--;;
DROP table if exists message CASCADE;
--;;

CREATE table if not exists channel (
id integer primary key generated always as identity,
slack_id text unique not null,
Expand Down

0 comments on commit 711e9f3

Please sign in to comment.