Commit eba97db0 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'mk/use-varchar-until-geo-structure-sql' into 'master'

Geo: Use string/varchar to store failure messages

See merge request gitlab-org/gitlab!56446
parents b44226c6 e963bebf
......@@ -289,7 +289,7 @@ For example, to add support for files referenced by a `Widget` model with a
t.binary :verification_checksum
t.binary :verification_checksum_mismatched
t.string :verification_failure, limit: 255
t.text :last_sync_failure
t.string :last_sync_failure, limit: 255
t.index :widget_id, name: :index_widget_registry_on_widget_id, unique: true
t.index :retry_at
......@@ -303,8 +303,6 @@ For example, to add support for files referenced by a `Widget` model with a
end
end
end
add_text_limit :widget_registry, :last_sync_failure, 255
end
def down
......@@ -940,7 +938,7 @@ For example, to add support for files referenced by a `Gizmos` model with a
t.bigint :gizmo_id, null: false
t.integer :state, default: 0, null: false, limit: 2
t.integer :retry_count, default: 0, limit: 2
t.text :last_sync_failure
t.string :last_sync_failure, limit: 255
t.boolean :force_to_redownload
t.boolean :missing_on_primary
......@@ -948,8 +946,6 @@ For example, to add support for files referenced by a `Gizmos` model with a
t.index :retry_at
t.index :state
end
add_text_limit :gizmo_registry, :last_sync_failure, 255
end
def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment