Skip to content

Remove version_authors and clean up old data #3549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions migrations/2021-04-24-115720_remove_version_authors/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE TABLE version_authors(
id SERIAL NOT NULL CONSTRAINT version_authors_pkey PRIMARY KEY,
version_id INTEGER NOT NULL CONSTRAINT fk_version_authors_version_id REFERENCES versions ON DELETE CASCADED,
name VARCHAR NOT NULL
);

CREATE INDEX index_version_authors_version_id ON version_authors (version_id);
1 change: 1 addition & 0 deletions migrations/2021-04-24-115720_remove_version_authors/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE version_authors;
1 change: 0 additions & 1 deletion mirage/factories/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default Factory.extend({
downloads: i => (((i + 13) * 42) % 13) * 1234,

features: () => {},
_authors: () => [],

crate_size: i => (((i + 13) * 42) % 13) * 54321,

Expand Down
Loading