Skip to content

Commit

Permalink
Fix wrong version of migration
Browse files Browse the repository at this point in the history
Before these changes are deployed, we have to manually modify the
version number in the production server. The `schema_migrations` table
contains, in its `version` column, the wrong number `202302224114624`
and we should replace it with `20230224114624`.

Co-authored-by: Eduardo Navarro <enavarro@suse.com>
  • Loading branch information
saraycp and eduardoj committed Apr 20, 2023
1 parent b781a0c commit 6b7a720
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/app/models/issue_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def update_package_meta
# Table name: issue_trackers
#
# id :integer not null, primary key
# api_key :string(255)
# description :string(255)
# enable_fetch :boolean default(FALSE)
# issues_updated :datetime not null
Expand Down
3 changes: 2 additions & 1 deletion src/api/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 202302224114624) do
ActiveRecord::Schema[7.0].define(version: 2023_04_13_080503) do
create_table "architectures", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
t.string "name", null: false, collation: "utf8mb3_general_ci"
t.boolean "available", default: false
Expand Down Expand Up @@ -554,6 +554,7 @@
t.datetime "issues_updated", precision: nil, null: false
t.boolean "enable_fetch", default: false
t.boolean "publish_issues", default: true
t.string "api_key"
end

create_table "issues", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
Expand Down

0 comments on commit 6b7a720

Please sign in to comment.