From ec8e2463db5058ae15ac56ed779ff68da24afdee Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 11 Sep 2015 14:38:34 +0200 Subject: [PATCH] Remove db/ci --- .../migrate/20121004140911_create_projects.rb | 14 -- db/ci/migrate/20121004165038_create_builds.rb | 15 -- .../20121101091638_devise_create_users.rb | 46 ---- .../20121101121639_add_token_to_project.rb | 5 - .../20121106143042_add_ref_functionality.rb | 10 - ...0121108160657_add_gitlab_url_to_project.rb | 5 - .../20121108174237_add_started_at_to_build.rb | 5 - ...21115094430_increate_trace_colunm_limit.rb | 8 - .../20121115132252_add_tmp_file_to_build.rb | 5 - .../20121116144312_add_before_sha_to_build.rb | 5 - ...20121224092350_add_schedule_to_projects.rb | 6 - ...20130114153451_change_schedule_invertal.rb | 25 -- ...130129121754_add_public_flag_to_project.rb | 5 - .../20130531112551_add_data_field_to_build.rb | 5 - ...31122131_remove_path_field_from_project.rb | 8 - .../migrate/20130531125905_create_runners.rb | 10 - .../20130531133603_add_runner_id_to_build.rb | 5 - .../20130603130920_remove_users_table.rb | 5 - ...130603144030_add_more_fields_to_project.rb | 5 - .../20130603144959_create_runner_projects.rb | 10 - ...161449_add_project_gitlab_id_to_project.rb | 5 - ...28142321_add_index_project_id_to_builds.rb | 5 - ...0130705171042_add_description_to_runner.rb | 5 - db/ci/migrate/20130710164015_add_db_index.rb | 7 - .../20130816201200_change_push_data_limit.rb | 5 - .../20130906175737_add_sessions_table.rb | 12 - ...23103430_add_allow_git_fetch_to_project.rb | 5 - ...dd_email_notification_fields_to_project.rb | 7 - .../20140130121538_rename_project_fields.rb | 5 - .../migrate/20140222210357_create_web_hook.rb | 9 - ...506091853_remove_public_key_from_runner.rb | 5 - ...140823225019_create_commits_from_builds.rb | 22 -- ...0140909142245_add_skip_refs_to_projects.rb | 5 - .../20141001125939_add_coverage_parser.rb | 5 - .../20141001132129_add_coverage_to_build.rb | 5 - .../20141028162820_add_sha_index_to_build.rb | 6 - ...20141031114419_migrate_build_to_commits.rb | 21 -- .../20141031141708_add_commit_indicies.rb | 9 - .../20141103135037_add_parallel_to_build.rb | 12 - .../20141103151359_add_commands_to_build.rb | 5 - .../20141103162726_add_job_id_to_build.rb | 5 - db/ci/migrate/20141104130024_migrate_jobs.rb | 12 - .../migrate/20141104153744_add_name_to_job.rb | 5 - ...41127153745_remove_scripts_from_project.rb | 5 - .../20141201153755_remove_invalid_build.rb | 5 - .../migrate/20141204133321_create_service.rb | 15 -- .../20150111062026_add_filter_to_jobs.rb | 6 - ...on_migration.acts_as_taggable_on_engine.rb | 31 --- ...ique_indices.acts_as_taggable_on_engine.rb | 20 -- ...ache_to_tags.acts_as_taggable_on_engine.rb | 15 -- ...ggable_index.acts_as_taggable_on_engine.rb | 10 - .../20150204001035_build_missing_services.rb | 21 -- .../20150226001835_add_job_type_to_job.rb | 6 - ...150306131416_add_contacted_at_to_runner.rb | 5 - .../20150306135341_add_active_to_runner.rb | 5 - ...150310001733_rename_committer_to_pusher.rb | 5 - .../20150320001810_create_event_table.rb | 16 -- ...4001123_add_settings_for_shared_runners.rb | 6 - .../20150324001227_migrate_shared_runners.rb | 11 - .../20150330001111_disable_shared_runners.rb | 8 - .../20150415142013_add_deleted_at_to_jobs.rb | 6 - .../20150417000045_cleanup_the_build_model.rb | 9 - .../20150504010150_migrate_url_to_path.rb | 11 - ...0150504010250_rename_gitlab_url_to_path.rb | 5 - ...0150508011360_add_info_fields_to_runner.rb | 9 - .../20150528011001_add_fields_to_builds.rb | 6 - .../20150528011012_move_job_name_to_build.rb | 10 - .../20150529012113_add_tag_to_commits.rb | 5 - .../20150601043220_add_yaml_to_projects.rb | 9 - .../20150601043231_migrate_jobs_to_yaml.rb | 97 -------- ...0602000240_change_default_build_timeout.rb | 9 - .../20150605002131_create_variables.rb | 11 - .../20150616001155_add_errors_to_commit.rb | 5 - .../20150630091815_add_options_to_build.rb | 5 - ...125244_add_encrypted_value_to_variables.rb | 7 - .../20150703125325_encrypt_variables.rb | 10 - ...50707134456_add_allow_failure_to_builds.rb | 5 - .../20150710113836_add_job_type_to_builds.rb | 5 - ...1_migrate_deploy_to_job_type_for_builds.rb | 6 - .../20150721204649_truncate_sessions.rb | 9 - ...50729145246_create_application_settings.rb | 10 - ...3142346_rename_job_type_to_stage_builds.rb | 9 - ...50806091503_add_committed_at_to_commits.rb | 6 - ...655_update_committed_at_with_created_at.rb | 5 - .../migrate/20150806102222_create_trigger.rb | 12 - .../20150806102457_add_trigger_to_builds.rb | 5 - .../20150806105404_create_trigger_request.rb | 9 - ...62227_add_commit_id_to_trigger_requests.rb | 8 - db/ci/schema.rb | 226 ------------------ db/ci/seeds.rb | 0 90 files changed, 1103 deletions(-) delete mode 100644 db/ci/migrate/20121004140911_create_projects.rb delete mode 100644 db/ci/migrate/20121004165038_create_builds.rb delete mode 100644 db/ci/migrate/20121101091638_devise_create_users.rb delete mode 100644 db/ci/migrate/20121101121639_add_token_to_project.rb delete mode 100644 db/ci/migrate/20121106143042_add_ref_functionality.rb delete mode 100644 db/ci/migrate/20121108160657_add_gitlab_url_to_project.rb delete mode 100644 db/ci/migrate/20121108174237_add_started_at_to_build.rb delete mode 100644 db/ci/migrate/20121115094430_increate_trace_colunm_limit.rb delete mode 100644 db/ci/migrate/20121115132252_add_tmp_file_to_build.rb delete mode 100644 db/ci/migrate/20121116144312_add_before_sha_to_build.rb delete mode 100644 db/ci/migrate/20121224092350_add_schedule_to_projects.rb delete mode 100644 db/ci/migrate/20130114153451_change_schedule_invertal.rb delete mode 100644 db/ci/migrate/20130129121754_add_public_flag_to_project.rb delete mode 100644 db/ci/migrate/20130531112551_add_data_field_to_build.rb delete mode 100644 db/ci/migrate/20130531122131_remove_path_field_from_project.rb delete mode 100644 db/ci/migrate/20130531125905_create_runners.rb delete mode 100644 db/ci/migrate/20130531133603_add_runner_id_to_build.rb delete mode 100644 db/ci/migrate/20130603130920_remove_users_table.rb delete mode 100644 db/ci/migrate/20130603144030_add_more_fields_to_project.rb delete mode 100644 db/ci/migrate/20130603144959_create_runner_projects.rb delete mode 100644 db/ci/migrate/20130603161449_add_project_gitlab_id_to_project.rb delete mode 100644 db/ci/migrate/20130628142321_add_index_project_id_to_builds.rb delete mode 100644 db/ci/migrate/20130705171042_add_description_to_runner.rb delete mode 100644 db/ci/migrate/20130710164015_add_db_index.rb delete mode 100644 db/ci/migrate/20130816201200_change_push_data_limit.rb delete mode 100644 db/ci/migrate/20130906175737_add_sessions_table.rb delete mode 100644 db/ci/migrate/20131023103430_add_allow_git_fetch_to_project.rb delete mode 100644 db/ci/migrate/20131120155545_add_email_notification_fields_to_project.rb delete mode 100644 db/ci/migrate/20140130121538_rename_project_fields.rb delete mode 100644 db/ci/migrate/20140222210357_create_web_hook.rb delete mode 100644 db/ci/migrate/20140506091853_remove_public_key_from_runner.rb delete mode 100644 db/ci/migrate/20140823225019_create_commits_from_builds.rb delete mode 100644 db/ci/migrate/20140909142245_add_skip_refs_to_projects.rb delete mode 100644 db/ci/migrate/20141001125939_add_coverage_parser.rb delete mode 100644 db/ci/migrate/20141001132129_add_coverage_to_build.rb delete mode 100644 db/ci/migrate/20141028162820_add_sha_index_to_build.rb delete mode 100644 db/ci/migrate/20141031114419_migrate_build_to_commits.rb delete mode 100644 db/ci/migrate/20141031141708_add_commit_indicies.rb delete mode 100644 db/ci/migrate/20141103135037_add_parallel_to_build.rb delete mode 100644 db/ci/migrate/20141103151359_add_commands_to_build.rb delete mode 100644 db/ci/migrate/20141103162726_add_job_id_to_build.rb delete mode 100644 db/ci/migrate/20141104130024_migrate_jobs.rb delete mode 100644 db/ci/migrate/20141104153744_add_name_to_job.rb delete mode 100644 db/ci/migrate/20141127153745_remove_scripts_from_project.rb delete mode 100644 db/ci/migrate/20141201153755_remove_invalid_build.rb delete mode 100644 db/ci/migrate/20141204133321_create_service.rb delete mode 100644 db/ci/migrate/20150111062026_add_filter_to_jobs.rb delete mode 100644 db/ci/migrate/20150113001832_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb delete mode 100644 db/ci/migrate/20150113001833_add_missing_unique_indices.acts_as_taggable_on_engine.rb delete mode 100644 db/ci/migrate/20150113001834_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb delete mode 100644 db/ci/migrate/20150113001835_add_missing_taggable_index.acts_as_taggable_on_engine.rb delete mode 100644 db/ci/migrate/20150204001035_build_missing_services.rb delete mode 100644 db/ci/migrate/20150226001835_add_job_type_to_job.rb delete mode 100644 db/ci/migrate/20150306131416_add_contacted_at_to_runner.rb delete mode 100644 db/ci/migrate/20150306135341_add_active_to_runner.rb delete mode 100644 db/ci/migrate/20150310001733_rename_committer_to_pusher.rb delete mode 100644 db/ci/migrate/20150320001810_create_event_table.rb delete mode 100644 db/ci/migrate/20150324001123_add_settings_for_shared_runners.rb delete mode 100644 db/ci/migrate/20150324001227_migrate_shared_runners.rb delete mode 100644 db/ci/migrate/20150330001111_disable_shared_runners.rb delete mode 100644 db/ci/migrate/20150415142013_add_deleted_at_to_jobs.rb delete mode 100644 db/ci/migrate/20150417000045_cleanup_the_build_model.rb delete mode 100644 db/ci/migrate/20150504010150_migrate_url_to_path.rb delete mode 100644 db/ci/migrate/20150504010250_rename_gitlab_url_to_path.rb delete mode 100644 db/ci/migrate/20150508011360_add_info_fields_to_runner.rb delete mode 100644 db/ci/migrate/20150528011001_add_fields_to_builds.rb delete mode 100644 db/ci/migrate/20150528011012_move_job_name_to_build.rb delete mode 100644 db/ci/migrate/20150529012113_add_tag_to_commits.rb delete mode 100644 db/ci/migrate/20150601043220_add_yaml_to_projects.rb delete mode 100644 db/ci/migrate/20150601043231_migrate_jobs_to_yaml.rb delete mode 100644 db/ci/migrate/20150602000240_change_default_build_timeout.rb delete mode 100644 db/ci/migrate/20150605002131_create_variables.rb delete mode 100644 db/ci/migrate/20150616001155_add_errors_to_commit.rb delete mode 100644 db/ci/migrate/20150630091815_add_options_to_build.rb delete mode 100644 db/ci/migrate/20150703125244_add_encrypted_value_to_variables.rb delete mode 100644 db/ci/migrate/20150703125325_encrypt_variables.rb delete mode 100644 db/ci/migrate/20150707134456_add_allow_failure_to_builds.rb delete mode 100644 db/ci/migrate/20150710113836_add_job_type_to_builds.rb delete mode 100644 db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb delete mode 100644 db/ci/migrate/20150721204649_truncate_sessions.rb delete mode 100644 db/ci/migrate/20150729145246_create_application_settings.rb delete mode 100644 db/ci/migrate/20150803142346_rename_job_type_to_stage_builds.rb delete mode 100644 db/ci/migrate/20150806091503_add_committed_at_to_commits.rb delete mode 100644 db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb delete mode 100644 db/ci/migrate/20150806102222_create_trigger.rb delete mode 100644 db/ci/migrate/20150806102457_add_trigger_to_builds.rb delete mode 100644 db/ci/migrate/20150806105404_create_trigger_request.rb delete mode 100644 db/ci/migrate/20150819162227_add_commit_id_to_trigger_requests.rb delete mode 100644 db/ci/schema.rb delete mode 100644 db/ci/seeds.rb diff --git a/db/ci/migrate/20121004140911_create_projects.rb b/db/ci/migrate/20121004140911_create_projects.rb deleted file mode 100644 index a9fee3aa6c8..00000000000 --- a/db/ci/migrate/20121004140911_create_projects.rb +++ /dev/null @@ -1,14 +0,0 @@ -class CreateProjects < ActiveRecord::Migration - def up - create_table :projects do |t| - t.string :name, null: false - t.string :path, null: false - t.integer :timeout, null: false, default: 1800 - t.text :scripts, null: false - t.timestamps - end - end - - def down - end -end diff --git a/db/ci/migrate/20121004165038_create_builds.rb b/db/ci/migrate/20121004165038_create_builds.rb deleted file mode 100644 index 547803489fb..00000000000 --- a/db/ci/migrate/20121004165038_create_builds.rb +++ /dev/null @@ -1,15 +0,0 @@ -class CreateBuilds < ActiveRecord::Migration - def up - create_table :builds do |t| - t.integer :project_id - t.string :commit_ref - t.string :status - t.datetime :finished_at - t.text :trace - t.timestamps - end - end - - def down - end -end diff --git a/db/ci/migrate/20121101091638_devise_create_users.rb b/db/ci/migrate/20121101091638_devise_create_users.rb deleted file mode 100644 index 2099d998fa4..00000000000 --- a/db/ci/migrate/20121101091638_devise_create_users.rb +++ /dev/null @@ -1,46 +0,0 @@ -class DeviseCreateUsers < ActiveRecord::Migration - def change - create_table(:users) do |t| - ## Database authenticatable - t.string :email, :null => false, :default => "" - t.string :encrypted_password, :null => false, :default => "" - - ## Recoverable - t.string :reset_password_token - t.datetime :reset_password_sent_at - - ## Rememberable - t.datetime :remember_created_at - - ## Trackable - t.integer :sign_in_count, :default => 0 - t.datetime :current_sign_in_at - t.datetime :last_sign_in_at - t.string :current_sign_in_ip - t.string :last_sign_in_ip - - ## Confirmable - # t.string :confirmation_token - # t.datetime :confirmed_at - # t.datetime :confirmation_sent_at - # t.string :unconfirmed_email # Only if using reconfirmable - - ## Lockable - # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts - # t.string :unlock_token # Only if unlock strategy is :email or :both - # t.datetime :locked_at - - ## Token authenticatable - # t.string :authentication_token - - - t.timestamps - end - - add_index :users, :email, :unique => true - add_index :users, :reset_password_token, :unique => true - # add_index :users, :confirmation_token, :unique => true - # add_index :users, :unlock_token, :unique => true - # add_index :users, :authentication_token, :unique => true - end -end diff --git a/db/ci/migrate/20121101121639_add_token_to_project.rb b/db/ci/migrate/20121101121639_add_token_to_project.rb deleted file mode 100644 index bb66677b6b1..00000000000 --- a/db/ci/migrate/20121101121639_add_token_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddTokenToProject < ActiveRecord::Migration - def change - add_column :projects, :token, :string, null: true - end -end diff --git a/db/ci/migrate/20121106143042_add_ref_functionality.rb b/db/ci/migrate/20121106143042_add_ref_functionality.rb deleted file mode 100644 index 0c26571e305..00000000000 --- a/db/ci/migrate/20121106143042_add_ref_functionality.rb +++ /dev/null @@ -1,10 +0,0 @@ -class AddRefFunctionality < ActiveRecord::Migration - def change - rename_column :builds, :commit_ref, :ref - add_column :builds, :sha, :string - add_column :projects, :default_ref, :string - end - - def down - end -end diff --git a/db/ci/migrate/20121108160657_add_gitlab_url_to_project.rb b/db/ci/migrate/20121108160657_add_gitlab_url_to_project.rb deleted file mode 100644 index 8a4e8fd666f..00000000000 --- a/db/ci/migrate/20121108160657_add_gitlab_url_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddGitlabUrlToProject < ActiveRecord::Migration - def change - add_column :projects, :gitlab_url, :string, null: true - end -end diff --git a/db/ci/migrate/20121108174237_add_started_at_to_build.rb b/db/ci/migrate/20121108174237_add_started_at_to_build.rb deleted file mode 100644 index b4d65c75004..00000000000 --- a/db/ci/migrate/20121108174237_add_started_at_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddStartedAtToBuild < ActiveRecord::Migration - def change - add_column :builds, :started_at, :datetime, null: true - end -end diff --git a/db/ci/migrate/20121115094430_increate_trace_colunm_limit.rb b/db/ci/migrate/20121115094430_increate_trace_colunm_limit.rb deleted file mode 100644 index 5853f440f59..00000000000 --- a/db/ci/migrate/20121115094430_increate_trace_colunm_limit.rb +++ /dev/null @@ -1,8 +0,0 @@ -class IncreateTraceColunmLimit < ActiveRecord::Migration - def up - change_column :builds, :trace, :text, :limit => 1073741823 - end - - def down - end -end diff --git a/db/ci/migrate/20121115132252_add_tmp_file_to_build.rb b/db/ci/migrate/20121115132252_add_tmp_file_to_build.rb deleted file mode 100644 index a9a4e36b5ba..00000000000 --- a/db/ci/migrate/20121115132252_add_tmp_file_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddTmpFileToBuild < ActiveRecord::Migration - def change - add_column :builds, :tmp_file, :string - end -end diff --git a/db/ci/migrate/20121116144312_add_before_sha_to_build.rb b/db/ci/migrate/20121116144312_add_before_sha_to_build.rb deleted file mode 100644 index 7b8cfd93caa..00000000000 --- a/db/ci/migrate/20121116144312_add_before_sha_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddBeforeShaToBuild < ActiveRecord::Migration - def change - add_column :builds, :before_sha, :string, null: true - end -end diff --git a/db/ci/migrate/20121224092350_add_schedule_to_projects.rb b/db/ci/migrate/20121224092350_add_schedule_to_projects.rb deleted file mode 100644 index fb3155f1159..00000000000 --- a/db/ci/migrate/20121224092350_add_schedule_to_projects.rb +++ /dev/null @@ -1,6 +0,0 @@ -class AddScheduleToProjects < ActiveRecord::Migration - def change - add_column :projects, :always_build, :boolean, default: false, null: false - add_column :projects, :polling_interval, :string, null: true - end -end diff --git a/db/ci/migrate/20130114153451_change_schedule_invertal.rb b/db/ci/migrate/20130114153451_change_schedule_invertal.rb deleted file mode 100644 index accf3eef473..00000000000 --- a/db/ci/migrate/20130114153451_change_schedule_invertal.rb +++ /dev/null @@ -1,25 +0,0 @@ -class ChangeScheduleInvertal < ActiveRecord::Migration - def up - if ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' - connection.execute(%q{ - ALTER TABLE projects - ALTER COLUMN polling_interval - TYPE integer USING CAST(polling_interval AS integer) - }) - else - change_column :projects, :polling_interval, :integer, null: true - end - end - - def down - if ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' - connection.execute(%q{ - ALTER TABLE projects - ALTER COLUMN polling_interval - TYPE integer USING CAST(polling_interval AS varchar) - }) - else - change_column :projects, :polling_interval, :string, null: true - end - end -end diff --git a/db/ci/migrate/20130129121754_add_public_flag_to_project.rb b/db/ci/migrate/20130129121754_add_public_flag_to_project.rb deleted file mode 100644 index 2bfe52f0df4..00000000000 --- a/db/ci/migrate/20130129121754_add_public_flag_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddPublicFlagToProject < ActiveRecord::Migration - def change - add_column :projects, :public, :boolean, null: false, default: false - end -end diff --git a/db/ci/migrate/20130531112551_add_data_field_to_build.rb b/db/ci/migrate/20130531112551_add_data_field_to_build.rb deleted file mode 100644 index ff897bce448..00000000000 --- a/db/ci/migrate/20130531112551_add_data_field_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddDataFieldToBuild < ActiveRecord::Migration - def change - add_column :builds, :push_data, :text - end -end diff --git a/db/ci/migrate/20130531122131_remove_path_field_from_project.rb b/db/ci/migrate/20130531122131_remove_path_field_from_project.rb deleted file mode 100644 index 684c16470a4..00000000000 --- a/db/ci/migrate/20130531122131_remove_path_field_from_project.rb +++ /dev/null @@ -1,8 +0,0 @@ -class RemovePathFieldFromProject < ActiveRecord::Migration - def up - remove_column :projects, :path - end - - def down - end -end diff --git a/db/ci/migrate/20130531125905_create_runners.rb b/db/ci/migrate/20130531125905_create_runners.rb deleted file mode 100644 index 2619394f51b..00000000000 --- a/db/ci/migrate/20130531125905_create_runners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateRunners < ActiveRecord::Migration - def change - create_table :runners do |t| - t.string :token - t.text :public_key - - t.timestamps - end - end -end diff --git a/db/ci/migrate/20130531133603_add_runner_id_to_build.rb b/db/ci/migrate/20130531133603_add_runner_id_to_build.rb deleted file mode 100644 index bccc0970835..00000000000 --- a/db/ci/migrate/20130531133603_add_runner_id_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddRunnerIdToBuild < ActiveRecord::Migration - def change - add_column :builds, :runner_id, :integer - end -end diff --git a/db/ci/migrate/20130603130920_remove_users_table.rb b/db/ci/migrate/20130603130920_remove_users_table.rb deleted file mode 100644 index 6948ef265ef..00000000000 --- a/db/ci/migrate/20130603130920_remove_users_table.rb +++ /dev/null @@ -1,5 +0,0 @@ -class RemoveUsersTable < ActiveRecord::Migration - def up - drop_table :users - end -end diff --git a/db/ci/migrate/20130603144030_add_more_fields_to_project.rb b/db/ci/migrate/20130603144030_add_more_fields_to_project.rb deleted file mode 100644 index 0897682285a..00000000000 --- a/db/ci/migrate/20130603144030_add_more_fields_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddMoreFieldsToProject < ActiveRecord::Migration - def change - add_column :projects, :ssh_url_to_repo, :string - end -end diff --git a/db/ci/migrate/20130603144959_create_runner_projects.rb b/db/ci/migrate/20130603144959_create_runner_projects.rb deleted file mode 100644 index c65c8a51bcf..00000000000 --- a/db/ci/migrate/20130603144959_create_runner_projects.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateRunnerProjects < ActiveRecord::Migration - def change - create_table :runner_projects do |t| - t.integer :runner_id, null: false - t.integer :project_id, null: false - - t.timestamps - end - end -end diff --git a/db/ci/migrate/20130603161449_add_project_gitlab_id_to_project.rb b/db/ci/migrate/20130603161449_add_project_gitlab_id_to_project.rb deleted file mode 100644 index 3efdbb7af1c..00000000000 --- a/db/ci/migrate/20130603161449_add_project_gitlab_id_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddProjectGitlabIdToProject < ActiveRecord::Migration - def change - add_column :projects, :gitlab_id, :integer - end -end diff --git a/db/ci/migrate/20130628142321_add_index_project_id_to_builds.rb b/db/ci/migrate/20130628142321_add_index_project_id_to_builds.rb deleted file mode 100644 index 5f968b06b5d..00000000000 --- a/db/ci/migrate/20130628142321_add_index_project_id_to_builds.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddIndexProjectIdToBuilds < ActiveRecord::Migration - def change - add_index :builds, :project_id - end -end diff --git a/db/ci/migrate/20130705171042_add_description_to_runner.rb b/db/ci/migrate/20130705171042_add_description_to_runner.rb deleted file mode 100644 index 1e04e98d109..00000000000 --- a/db/ci/migrate/20130705171042_add_description_to_runner.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddDescriptionToRunner < ActiveRecord::Migration - def change - add_column :runners, :description, :string - end -end diff --git a/db/ci/migrate/20130710164015_add_db_index.rb b/db/ci/migrate/20130710164015_add_db_index.rb deleted file mode 100644 index 4907fae888b..00000000000 --- a/db/ci/migrate/20130710164015_add_db_index.rb +++ /dev/null @@ -1,7 +0,0 @@ -class AddDbIndex < ActiveRecord::Migration - def change - add_index :builds, :runner_id - add_index :runner_projects, :runner_id - add_index :runner_projects, :project_id - end -end diff --git a/db/ci/migrate/20130816201200_change_push_data_limit.rb b/db/ci/migrate/20130816201200_change_push_data_limit.rb deleted file mode 100644 index 29bd45c2cf9..00000000000 --- a/db/ci/migrate/20130816201200_change_push_data_limit.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ChangePushDataLimit < ActiveRecord::Migration - def change - change_column :builds, :push_data, :text, :limit => 16777215 - end -end diff --git a/db/ci/migrate/20130906175737_add_sessions_table.rb b/db/ci/migrate/20130906175737_add_sessions_table.rb deleted file mode 100644 index 4c879564a58..00000000000 --- a/db/ci/migrate/20130906175737_add_sessions_table.rb +++ /dev/null @@ -1,12 +0,0 @@ -class AddSessionsTable < ActiveRecord::Migration - def change - create_table :sessions do |t| - t.string :session_id, :null => false - t.text :data - t.timestamps - end - - add_index :sessions, :session_id - add_index :sessions, :updated_at - end -end diff --git a/db/ci/migrate/20131023103430_add_allow_git_fetch_to_project.rb b/db/ci/migrate/20131023103430_add_allow_git_fetch_to_project.rb deleted file mode 100644 index 900ea913728..00000000000 --- a/db/ci/migrate/20131023103430_add_allow_git_fetch_to_project.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddAllowGitFetchToProject < ActiveRecord::Migration - def change - add_column :projects, :allow_git_fetch, :boolean, default: true, null: false - end -end diff --git a/db/ci/migrate/20131120155545_add_email_notification_fields_to_project.rb b/db/ci/migrate/20131120155545_add_email_notification_fields_to_project.rb deleted file mode 100644 index e0f4943d40f..00000000000 --- a/db/ci/migrate/20131120155545_add_email_notification_fields_to_project.rb +++ /dev/null @@ -1,7 +0,0 @@ -class AddEmailNotificationFieldsToProject < ActiveRecord::Migration - def change - add_column :projects, :email_recipients, :string, default: '', null: false - add_column :projects, :email_add_committer, :boolean, default: true, null: false - add_column :projects, :email_all_broken_builds, :boolean, default: true, null: false - end -end diff --git a/db/ci/migrate/20140130121538_rename_project_fields.rb b/db/ci/migrate/20140130121538_rename_project_fields.rb deleted file mode 100644 index 3d7d3e8167e..00000000000 --- a/db/ci/migrate/20140130121538_rename_project_fields.rb +++ /dev/null @@ -1,5 +0,0 @@ -class RenameProjectFields < ActiveRecord::Migration - def change - rename_column :projects, :email_all_broken_builds, :email_only_broken_builds - end -end diff --git a/db/ci/migrate/20140222210357_create_web_hook.rb b/db/ci/migrate/20140222210357_create_web_hook.rb deleted file mode 100644 index 743ad816906..00000000000 --- a/db/ci/migrate/20140222210357_create_web_hook.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateWebHook < ActiveRecord::Migration - def change - create_table :web_hooks do |t| - t.string :url, null: false - t.integer :project_id, null: false - t.timestamps - end - end -end diff --git a/db/ci/migrate/20140506091853_remove_public_key_from_runner.rb b/db/ci/migrate/20140506091853_remove_public_key_from_runner.rb deleted file mode 100644 index 3bf9f036ae8..00000000000 --- a/db/ci/migrate/20140506091853_remove_public_key_from_runner.rb +++ /dev/null @@ -1,5 +0,0 @@ -class RemovePublicKeyFromRunner < ActiveRecord::Migration - def change - remove_column :runners, :public_key - end -end diff --git a/db/ci/migrate/20140823225019_create_commits_from_builds.rb b/db/ci/migrate/20140823225019_create_commits_from_builds.rb deleted file mode 100644 index 15f84b11511..00000000000 --- a/db/ci/migrate/20140823225019_create_commits_from_builds.rb +++ /dev/null @@ -1,22 +0,0 @@ -class CreateCommitsFromBuilds < ActiveRecord::Migration - def change - create_table :commits do |t| - t.integer :project_id - t.string :ref, nil: false - t.string :sha, nil: false - t.string :before_sha, nil: false - t.text :push_data, nil: false - - t.timestamps - end - - add_column :builds, :commit_id, :integer - - # Remove commit data from builds - #remove_column :builds, :project_id, :integer - #remove_column :builds, :ref, :string - #remove_column :builds, :sha, :string - #remove_column :builds, :before_sha, :string - #remove_column :builds, :push_data, :text - end -end diff --git a/db/ci/migrate/20140909142245_add_skip_refs_to_projects.rb b/db/ci/migrate/20140909142245_add_skip_refs_to_projects.rb deleted file mode 100644 index 2d7b1a223e2..00000000000 --- a/db/ci/migrate/20140909142245_add_skip_refs_to_projects.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddSkipRefsToProjects < ActiveRecord::Migration - def change - add_column :projects, :skip_refs, :string - end -end diff --git a/db/ci/migrate/20141001125939_add_coverage_parser.rb b/db/ci/migrate/20141001125939_add_coverage_parser.rb deleted file mode 100644 index 7ea7d6047a9..00000000000 --- a/db/ci/migrate/20141001125939_add_coverage_parser.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddCoverageParser < ActiveRecord::Migration - def change - add_column :projects, :coverage_regex, :string - end -end diff --git a/db/ci/migrate/20141001132129_add_coverage_to_build.rb b/db/ci/migrate/20141001132129_add_coverage_to_build.rb deleted file mode 100644 index 442a3dd28c0..00000000000 --- a/db/ci/migrate/20141001132129_add_coverage_to_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddCoverageToBuild < ActiveRecord::Migration - def change - add_column :builds, :coverage, :float - end -end diff --git a/db/ci/migrate/20141028162820_add_sha_index_to_build.rb b/db/ci/migrate/20141028162820_add_sha_index_to_build.rb deleted file mode 100644 index bd2a4de5657..00000000000 --- a/db/ci/migrate/20141028162820_add_sha_index_to_build.rb +++ /dev/null @@ -1,6 +0,0 @@ -class AddShaIndexToBuild < ActiveRecord::Migration - def change - add_index :builds, :sha - add_index :builds, [:project_id, :sha] - end -end diff --git a/db/ci/migrate/20141031114419_migrate_build_to_commits.rb b/db/ci/migrate/20141031114419_migrate_build_to_commits.rb deleted file mode 100644 index dc90ec6d15e..00000000000 --- a/db/ci/migrate/20141031114419_migrate_build_to_commits.rb +++ /dev/null @@ -1,21 +0,0 @@ -class MigrateBuildToCommits < ActiveRecord::Migration - def change - execute <