diff --git a/db/migrate/20230111092510_add_migrate_projects_to_bulk_import_entities.rb b/db/migrate/20230111092510_add_migrate_projects_to_bulk_import_entities.rb new file mode 100644 index 0000000000000000000000000000000000000000..d09a796ba5c5516088c0a30bda3a95e40962b5e6 --- /dev/null +++ b/db/migrate/20230111092510_add_migrate_projects_to_bulk_import_entities.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddMigrateProjectsToBulkImportEntities < Gitlab::Database::Migration[2.1] + def change + add_column :bulk_import_entities, :migrate_projects, :boolean, null: false, default: true + end +end diff --git a/db/schema_migrations/20230111092510 b/db/schema_migrations/20230111092510 new file mode 100644 index 0000000000000000000000000000000000000000..b84ab421d2d3a722d0431c9b26d49000b965dcdd --- /dev/null +++ b/db/schema_migrations/20230111092510 @@ -0,0 +1 @@ +d80ba166cee17bce1ac7825d9acdc9eeaf78aca5df276cfe2c3b2b076112dd1e \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index b4a9509ea5b2263ef6da29a6120a16e8f71b3ae3..bc2ea0ab7ef1afbde7f1613176b58f500d8611c5 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -12462,6 +12462,7 @@ CREATE TABLE bulk_import_entities ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, source_xid integer, + migrate_projects boolean DEFAULT true NOT NULL, CONSTRAINT check_13f279f7da CHECK ((char_length(source_full_path) <= 255)), CONSTRAINT check_715d725ea2 CHECK ((char_length(destination_name) <= 255)), CONSTRAINT check_796a4d9cc6 CHECK ((char_length(jid) <= 255)),