Commit ede8004d97ffad048290c6941cb69f0fb837e263
1 parent
4f675eae
Exists in
stable-4.x
Updates SISP migration timestamp
(cherry picked from commit f694996f54be99810dbcbe9d0497ca39c63761a1)
Showing
2 changed files
with
45 additions
and
45 deletions
Show diff stats
src/noosfero-spb/software_communities/db/migrate/20151125175514_change_software_info_structure.rb
@@ -1,45 +0,0 @@ | @@ -1,45 +0,0 @@ | ||
1 | -class ChangeSoftwareInfoStructure < ActiveRecord::Migration | ||
2 | - def up | ||
3 | - change_table :software_infos do |t| | ||
4 | - t.text :sisp_url | ||
5 | - t.text :agency_identification | ||
6 | - t.text :software_requirements | ||
7 | - t.text :hardware_requirements | ||
8 | - t.text :documentation | ||
9 | - t.text :system_applications | ||
10 | - t.text :active_versions | ||
11 | - t.text :estimated_cost | ||
12 | - t.text :responsible | ||
13 | - t.text :responsible_for_acquirement | ||
14 | - t.text :system_info | ||
15 | - t.text :development_info | ||
16 | - t.text :maintenance | ||
17 | - t.text :standards_adherence | ||
18 | - t.text :platform | ||
19 | - t.text :sisp_type | ||
20 | - t.integer :sisp_id | ||
21 | - end | ||
22 | - | ||
23 | - change_column :software_infos, :finality, :text | ||
24 | - end | ||
25 | - | ||
26 | - def down | ||
27 | - remove_column :software_infos, :agency_identification | ||
28 | - remove_column :software_infos, :software_requirements | ||
29 | - remove_column :software_infos, :hardware_requirements | ||
30 | - remove_column :software_infos, :documentation | ||
31 | - remove_column :software_infos, :system_applications | ||
32 | - remove_column :software_infos, :active_versions | ||
33 | - remove_column :software_infos, :estimated_cost | ||
34 | - remove_column :software_infos, :responsible | ||
35 | - remove_column :software_infos, :responsible_for_acquirement | ||
36 | - remove_column :software_infos, :system_info | ||
37 | - remove_column :software_infos, :development_info | ||
38 | - remove_column :software_infos, :maintenance | ||
39 | - remove_column :software_infos, :standards_adherence | ||
40 | - remove_column :software_infos, :platform | ||
41 | - remove_column :software_infos, :sisp_type | ||
42 | - remove_column :software_infos, :sisp_id | ||
43 | - remove_column :software_infos, :sisp_url | ||
44 | - end | ||
45 | -end |
src/noosfero-spb/software_communities/db/migrate/20160107131641_change_software_info_structure.rb
0 → 100644
@@ -0,0 +1,45 @@ | @@ -0,0 +1,45 @@ | ||
1 | +class ChangeSoftwareInfoStructure < ActiveRecord::Migration | ||
2 | + def up | ||
3 | + change_table :software_infos do |t| | ||
4 | + t.text :sisp_url | ||
5 | + t.text :agency_identification | ||
6 | + t.text :software_requirements | ||
7 | + t.text :hardware_requirements | ||
8 | + t.text :documentation | ||
9 | + t.text :system_applications | ||
10 | + t.text :active_versions | ||
11 | + t.text :estimated_cost | ||
12 | + t.text :responsible | ||
13 | + t.text :responsible_for_acquirement | ||
14 | + t.text :system_info | ||
15 | + t.text :development_info | ||
16 | + t.text :maintenance | ||
17 | + t.text :standards_adherence | ||
18 | + t.text :platform | ||
19 | + t.text :sisp_type | ||
20 | + t.integer :sisp_id | ||
21 | + end | ||
22 | + | ||
23 | + change_column :software_infos, :finality, :text | ||
24 | + end | ||
25 | + | ||
26 | + def down | ||
27 | + remove_column :software_infos, :agency_identification | ||
28 | + remove_column :software_infos, :software_requirements | ||
29 | + remove_column :software_infos, :hardware_requirements | ||
30 | + remove_column :software_infos, :documentation | ||
31 | + remove_column :software_infos, :system_applications | ||
32 | + remove_column :software_infos, :active_versions | ||
33 | + remove_column :software_infos, :estimated_cost | ||
34 | + remove_column :software_infos, :responsible | ||
35 | + remove_column :software_infos, :responsible_for_acquirement | ||
36 | + remove_column :software_infos, :system_info | ||
37 | + remove_column :software_infos, :development_info | ||
38 | + remove_column :software_infos, :maintenance | ||
39 | + remove_column :software_infos, :standards_adherence | ||
40 | + remove_column :software_infos, :platform | ||
41 | + remove_column :software_infos, :sisp_type | ||
42 | + remove_column :software_infos, :sisp_id | ||
43 | + remove_column :software_infos, :sisp_url | ||
44 | + end | ||
45 | +end |