mirror of
https://github.com/discourse/discourse.git
synced 2026-08-15 14:06:35 +08:00
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Publish Assets / publish-assets (push) Waiting to run
Tests / core backend (push) Waiting to run
Tests / plugins backend (push) Waiting to run
Tests / core frontend (Chrome) (push) Waiting to run
Tests / plugins frontend (push) Waiting to run
Tests / themes frontend (push) Waiting to run
Tests / core system (push) Waiting to run
Tests / plugins system (push) Waiting to run
Tests / themes system (push) Waiting to run
Tests / core frontend (Firefox ESR) (push) Waiting to run
Tests / core frontend (Firefox Evergreen) (push) Waiting to run
Tests / chat system (push) Waiting to run
Tests / merge (push) Blocked by required conditions
Our SafeMigrate system is designed to prevent tables/columns being dropped in pre-deploy migrations. Its regex-based detection was triggering incorrectly on `ALTER COLUMN DROP DEFAULT`.
10 lines
190 B
Ruby
Vendored
10 lines
190 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class DropDefault < ActiveRecord::Migration[8.0]
|
|
def up
|
|
change_column_default :posts, :like_count, nil
|
|
end
|
|
|
|
def down
|
|
raise "not tested"
|
|
end
|
|
end
|