Skip to content

Commit

Permalink
Auto merge of #3549 - hi-rustin:rustin-patch-fix, r=pietroalbini
Browse files Browse the repository at this point in the history
Remove version_authors and clean up old data

close rust-lang/rust#83227
  • Loading branch information
bors committed May 12, 2021
2 parents f32c0d6 + 70c8e2a commit cd37d9d
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 278 deletions.
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 CASCADE,
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

0 comments on commit cd37d9d

Please sign in to comment.