diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-28 10:35:51 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:13 +0100 |
commit | ebd69c5fc1296f30238326b901ad73c891d696da (patch) | |
tree | 10a773188ebdc7d7c63cbd0329a795a3d4cb6dc3 /db | |
parent | 304c39b6dc5878664c0dace4e3af6bdd2fa395f0 (diff) | |
download | gitlab-ce-ebd69c5fc1296f30238326b901ad73c891d696da.tar.gz |
Remove artifacts metadata column from database
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/development/14_builds.rb | 7 | ||||
-rw-r--r-- | db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb | 5 |
2 files changed, 0 insertions, 12 deletions
diff --git a/db/fixtures/development/14_builds.rb b/db/fixtures/development/14_builds.rb index 2e15f30adbb..e625fd6b75a 100644 --- a/db/fixtures/development/14_builds.rb +++ b/db/fixtures/development/14_builds.rb @@ -12,7 +12,6 @@ class Gitlab::Seeder::Builds FileUtils.copy(artifacts_path, artifacts_cache_file_path) File.open(artifacts_cache_file_path, 'r') do |file| build.artifacts_file = file - build.artifacts_metadata = artifacts_metadata end begin @@ -57,12 +56,6 @@ class Gitlab::Seeder::Builds def artifacts_cache_file_path artifacts_path.to_s.gsub('ci_', "p#{@project.id}_") end - - def artifacts_metadata - return @artifacts_metadata if @artifacts_metadata - logs, _exit_status = Gitlab::Popen.popen(%W(tar tzf #{artifacts_path})) - @artifacts_metadata = logs.split(/\n/) - end end Gitlab::Seeder.quiet do diff --git a/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb b/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb deleted file mode 100644 index d87f9f058fb..00000000000 --- a/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddArtifactsMetadataToCiBuild < ActiveRecord::Migration - def change - add_column :ci_builds, :artifacts_metadata, :text, limit: 4294967295 - end -end |