diff options
Diffstat (limited to 'gems/gitlab-schema-validation/spec')
-rw-r--r-- | gems/gitlab-schema-validation/spec/fixtures/structure.sql | 3 | ||||
-rw-r--r-- | gems/gitlab-schema-validation/spec/lib/gitlab/schema/validation/adapters/column_structure_sql_adapter_spec.rb | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gems/gitlab-schema-validation/spec/fixtures/structure.sql b/gems/gitlab-schema-validation/spec/fixtures/structure.sql index 421fb6c3593..7bb68734c72 100644 --- a/gems/gitlab-schema-validation/spec/fixtures/structure.sql +++ b/gems/gitlab-schema-validation/spec/fixtures/structure.sql @@ -19,7 +19,8 @@ CREATE TABLE test_table ( numeric_column numeric NOT NULL, numeric_with_default_column numeric DEFAULT 1.0 NOT NULL, boolean_colum boolean, - boolean_with_default_colum boolean DEFAULT true NOT NULL, + boolean_with_default_column_true boolean DEFAULT true NOT NULL, + boolean_with_default_column_false boolean DEFAULT false NOT NULL, double_precision_column double precision, double_precision_with_default_column double precision DEFAULT 1.0, varying_column character varying, diff --git a/gems/gitlab-schema-validation/spec/lib/gitlab/schema/validation/adapters/column_structure_sql_adapter_spec.rb b/gems/gitlab-schema-validation/spec/lib/gitlab/schema/validation/adapters/column_structure_sql_adapter_spec.rb index ae0d635e8ca..1c44db5286a 100644 --- a/gems/gitlab-schema-validation/spec/lib/gitlab/schema/validation/adapters/column_structure_sql_adapter_spec.rb +++ b/gems/gitlab-schema-validation/spec/lib/gitlab/schema/validation/adapters/column_structure_sql_adapter_spec.rb @@ -21,7 +21,8 @@ RSpec.describe Gitlab::Schema::Validation::Adapters::ColumnStructureSqlAdapter, ['smallint_with_default_column', 'smallint', 'DEFAULT 0', 'NOT NULL', false], ['double_precision_with_default_column', 'double precision', 'DEFAULT 1.0', nil, false], ['numeric_with_default_column', 'numeric', 'DEFAULT 1.0', 'NOT NULL', false], - ['boolean_with_default_colum', 'boolean', 'DEFAULT true', 'NOT NULL', false], + ['boolean_with_default_column_true', 'boolean', 'DEFAULT true', 'NOT NULL', false], + ['boolean_with_default_column_false', 'boolean', 'DEFAULT false', 'NOT NULL', false], ['varying_with_default_column', 'character varying', "DEFAULT 'DEFAULT'::character varying", 'NOT NULL', false], ['varying_with_limit_and_default_column', 'character varying(255)', "DEFAULT 'DEFAULT'::character varying", nil, false], |