summaryrefslogtreecommitdiff
path: root/lib/sql/migration/007-patch-pull-requests.sql
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-12-04 09:44:34 +0000
committerStephen Finucane <stephen@that.guru>2018-01-04 14:20:24 +0000
commit40eca786a35d9e4d367bd82cbfcabd12f9357679 (patch)
tree32739600b486584b7bd890b22253a722f1b5431d /lib/sql/migration/007-patch-pull-requests.sql
parent603516de9c511482d5330e5535c5dbc0456847dd (diff)
downloadpatchwork-40eca786a35d9e4d367bd82cbfcabd12f9357679.tar
patchwork-40eca786a35d9e4d367bd82cbfcabd12f9357679.tar.gz
sql: Remove old migration scripts
These have not been used since v1.0 and we don't expect users to jump straight from pre-v1.0 to post-v2.0. Remove them. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'lib/sql/migration/007-patch-pull-requests.sql')
-rw-r--r--lib/sql/migration/007-patch-pull-requests.sql6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/sql/migration/007-patch-pull-requests.sql b/lib/sql/migration/007-patch-pull-requests.sql
deleted file mode 100644
index 9155133..0000000
--- a/lib/sql/migration/007-patch-pull-requests.sql
+++ /dev/null
@@ -1,6 +0,0 @@
-BEGIN;
-ALTER TABLE patchwork_patch ADD column pull_url varchar(255);
-ALTER TABLE patchwork_patch ALTER COLUMN content DROP NOT NULL;
-ALTER TABLE patchwork_patch ADD CONSTRAINT has_content_or_url
- CHECK (pull_url IS NOT NULL OR content IS NOT NULL);
-COMMIT;