Skip to content

Commit 76950a1

Browse files
committed
Drop the old schema_migrations table
We haven't been using this since we switched to diesel; `__diesel_schema_migrations` manages this now. We left this around just in case we needed to roll back the switch to diesel in production, but we're good and switched now. The existence checks are so that these migrations won't error if people are starting from a database that either does or does not have a schema_migrations table.
1 parent 102a91b commit 76950a1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CREATE TABLE IF NOT EXISTS schema_migrations (
2+
id SERIAL PRIMARY KEY,
3+
version INT8 NOT NULL UNIQUE
4+
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE IF EXISTS schema_migrations;

0 commit comments

Comments
 (0)