-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Increase max backup size #12602
Increase max backup size #12602
Conversation
7536edc
to
a58961f
Compare
db/schema.rb
Outdated
@@ -653,8 +653,8 @@ | |||
create_table "status_pins", force: :cascade do |t| | |||
t.bigint "account_id", null: false | |||
t.bigint "status_id", null: false | |||
t.datetime "created_at", default: -> { "now()" }, null: false | |||
t.datetime "updated_at", default: -> { "now()" }, null: false | |||
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" }, null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that CURRENT_TIMESTAMP
was added to Rails 5. I'm not sure why it decided to change in this PR(and I can change it back if needed). This seems like the more rails-y way to do it, as it is database-agnostic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'd like to minimize the changes as much as possible. We don't need to be database-agnostic anyway because we use postgres-specific query features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed now
@@ -703,30 +703,6 @@ | |||
t.index ["tag_id", "status_id"], name: "index_statuses_tags_on_tag_id_and_status_id", unique: true | |||
end | |||
|
|||
create_table "stream_entries", force: :cascade do |t| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is okay but shouldn't have been there in the first place...
ActiveRecord complains about this migration. Might there be a workaround?
|
@zunda Well that sucks. I don't have time to fix that(Exam season is right now for me) but someone else should submit a PR to fix that. Otherwise I will have a PR up in a few days. |
This reverts commit 3830c0b.
Since the number of data in the Display the actual number of records and make sure it is small enough.
If it looks okay, run migration with
You can also change the migration code.
|
Since the schema version was updated in the PR, I assumed There is I believe also a migration helper to do this the safe way. |
This reverts commit 86365ee.
@Gargron I ran db:migrate, however my database was a clean slate(I had only just installed mastodon for development). |
Changes backup size from integer to bigint. This solves #12572