aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat-openapi2.yml2
-rw-r--r--rust/migrations/2019-05-09-051834_v0.3/down.sql2
-rw-r--r--rust/migrations/2019-05-09-051834_v0.3/up.sql2
3 files changed, 3 insertions, 3 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index 9f4de5a5..389ba24e 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -367,7 +367,7 @@ definitions:
type: integer
example: 2014
format: int64
- withdrawn_state:
+ withdrawn_status:
type: string
withdrawn_date:
type: string
diff --git a/rust/migrations/2019-05-09-051834_v0.3/down.sql b/rust/migrations/2019-05-09-051834_v0.3/down.sql
index cc7d1469..65e818bf 100644
--- a/rust/migrations/2019-05-09-051834_v0.3/down.sql
+++ b/rust/migrations/2019-05-09-051834_v0.3/down.sql
@@ -11,7 +11,7 @@ ALTER TABLE release_rev
DROP COLUMN number,
DROP COLUMN version,
DROP COLUMN subtitle,
-DROP COLUMN withdrawn_state,
+DROP COLUMN withdrawn_status,
DROP COLUMN withdrawn_date,
DROP COLUMN withdrawn_year,
DROP COLUMN mag_id,
diff --git a/rust/migrations/2019-05-09-051834_v0.3/up.sql b/rust/migrations/2019-05-09-051834_v0.3/up.sql
index 0ec8d0e0..e5e88793 100644
--- a/rust/migrations/2019-05-09-051834_v0.3/up.sql
+++ b/rust/migrations/2019-05-09-051834_v0.3/up.sql
@@ -18,7 +18,7 @@ ALTER TABLE release_rev
ADD COLUMN number TEXT CHECK (octet_length(number) >= 1),
ADD COLUMN version TEXT CHECK (octet_length(version) >= 1),
ADD COLUMN subtitle TEXT CHECK (octet_length(subtitle) >= 1),
-ADD COLUMN withdrawn_state TEXT, -- TODO: enum?
+ADD COLUMN withdrawn_status TEXT, -- TODO: enum?
ADD COLUMN withdrawn_date DATE,
ADD COLUMN withdrawn_year BIGINT,
ADD COLUMN mag_id TEXT CHECK (octet_length(mag_id) >= 1),