diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb | 13 | ||||
-rw-r--r-- | db/schema_migrations/20231010101246 | 1 | ||||
-rw-r--r-- | db/structure.sql | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb b/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb new file mode 100644 index 00000000000..d7228b0a3f1 --- /dev/null +++ b/db/migrate/20231010101246_change_push_protected_up_to_access_level_to_smallint_in_packages_protection_rules.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class ChangePushProtectedUpToAccessLevelToSmallintInPackagesProtectionRules < Gitlab::Database::Migration[2.1] + enable_lock_retries! + + def up + change_column :packages_protection_rules, :push_protected_up_to_access_level, :integer, limit: 2 + end + + def down + change_column :packages_protection_rules, :push_protected_up_to_access_level, :integer + end +end diff --git a/db/schema_migrations/20231010101246 b/db/schema_migrations/20231010101246 new file mode 100644 index 00000000000..1b7622c9bc6 --- /dev/null +++ b/db/schema_migrations/20231010101246 @@ -0,0 +1 @@ +67323d7c15c28b7784bb1021184df4efcc72a38e72e4113a945101c32212a934
\ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 324888e9173..3d6800cfc55 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -20196,7 +20196,7 @@ CREATE TABLE packages_protection_rules ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, - push_protected_up_to_access_level integer NOT NULL, + push_protected_up_to_access_level smallint NOT NULL, package_type smallint NOT NULL, package_name_pattern text NOT NULL, CONSTRAINT check_d2d75d206d CHECK ((char_length(package_name_pattern) <= 255)) |