Skip to content

Commit

Permalink
Fix schema on main
Browse files Browse the repository at this point in the history
I've followed the instructions at
https://docs.publishing.service.gov.uk/repos/govuk-docker/troubleshooting.html#rails-database-schema-changed-unexpectedly-when-running-rake-dbmigrate

I cleaned my local docker setup completely, ran `make whitehall`
and created the DB and ran `db:migrate` and the schema file
changed.

Committing this so that in my next PR there is less of a diff

Trello: https://trello.com/c/tmnht4P1
  • Loading branch information
ChrisBAshton committed Feb 28, 2025
1 parent b196ac2 commit 0a62d25
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

create_table "call_for_evidence_responses", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
t.integer "edition_id"
t.text "summary", size: :medium
t.text "summary"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.date "published_on"
Expand Down Expand Up @@ -228,18 +228,16 @@
t.bigint "document_id", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.bigint "user_id"
t.string "state", default: "draft", null: false
t.datetime "scheduled_publication", precision: nil
t.text "instructions_to_publishers", size: :medium
t.text "instructions_to_publishers"
t.string "title", default: "", null: false
t.text "internal_change_note"
t.text "change_note"
t.boolean "major_change"
t.virtual "details_for_indexing", type: :text, as: "json_unquote(`details`)", stored: true
t.index ["document_id"], name: "index_content_block_editions_on_document_id"
t.index ["title", "details_for_indexing", "instructions_to_publishers"], name: "title_details_instructions_to_publishers", type: :fulltext
t.index ["user_id"], name: "index_content_block_editions_on_user_id"
end

create_table "content_block_versions", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
Expand All @@ -248,7 +246,7 @@
t.integer "event", null: false
t.string "whodunnit"
t.datetime "created_at", precision: nil, null: false
t.text "state", size: :medium
t.text "state"
t.json "field_diffs"
t.index ["item_id"], name: "index_content_block_versions_on_item_id"
t.index ["item_type"], name: "index_content_block_versions_on_item_type"
Expand Down Expand Up @@ -457,9 +455,9 @@
t.string "image_display_option"
t.string "auth_bypass_id", null: false
t.string "taxonomy_topic_email_override"
t.integer "main_office_id"
t.string "logo_formatted_name"
t.string "analytics_identifier"
t.integer "main_office_id"
t.boolean "visual_editor"
t.integer "government_id"
t.index ["alternative_format_provider_id"], name: "index_editions_on_alternative_format_provider_id"
Expand Down Expand Up @@ -913,8 +911,8 @@
end

create_table "republishing_events", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
t.text "action", size: :medium, null: false
t.text "reason", size: :medium, null: false
t.text "action", null: false
t.text "reason", null: false
t.bigint "user_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
Expand Down Expand Up @@ -1277,8 +1275,8 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "title"
t.text "summary", size: :medium
t.text "body", size: :medium
t.text "summary"
t.text "body"
t.index ["locale"], name: "index_worldwide_organisation_page_translations_on_locale"
t.index ["worldwide_organisation_page_id"], name: "index_bbd0fc4436b2d97c8b36796e9089468751fc0f2e"
end
Expand Down

0 comments on commit 0a62d25

Please sign in to comment.