Skip to content

Commit 9a33739

Browse files
committed
Merge branch 'main' of github.com:next-l/enju_leaf
2 parents 69412e2 + 5a74ce2 commit 9a33739

6 files changed

+36
-6
lines changed

config/database.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ test:
8383
# for a full overview on how database connection configuration can be specified.
8484
#
8585
production:
86-
<<: *default
87-
database: enju_leaf_production
88-
username: enju_leaf
89-
password: <%= ENV['ENJU_LEAF_DATABASE_PASSWORD'] %>
86+
primary: &primary_production
87+
<<: *default
88+
database: enju_leaf_production
89+
# username: enju_leaf
90+
# password: <%= ENV['ENJU_LEAF_DATABASE_PASSWORD'] %>
91+
queue:
92+
<<: *primary_production
93+
database: enju_rdm_production_queue
94+
migrations_paths: db/queue_migrate

db/migrate/20081028083142_create_agent_import_files.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ class CreateAgentImportFiles < ActiveRecord::Migration[4.2]
22
def change
33
create_table :agent_import_files do |t|
44
t.integer :parent_id
5+
t.string :content_type
6+
t.integer :size
57
t.integer :user_id
68
t.text :note
79
t.datetime :executed_at
10+
t.string :agent_import_file_name
11+
t.string :agent_import_content_type
12+
t.integer :agent_import_file_size
13+
t.datetime :agent_import_updated_at
814

915
t.timestamps
1016
end

db/migrate/20081028083208_create_resource_import_files.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ class CreateResourceImportFiles < ActiveRecord::Migration[4.2]
22
def change
33
create_table :resource_import_files do |t|
44
t.integer :parent_id
5+
t.string :content_type
6+
t.integer :size
57
t.integer :user_id
68
t.text :note
79
t.datetime :executed_at
10+
t.string :resource_import_file_name
11+
t.string :resource_import_content_type
12+
t.integer :resource_import_file_size
13+
t.datetime :resource_import_updated_at
814

915
t.timestamps
1016
end

db/migrate/20081028093607_create_event_import_files.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ class CreateEventImportFiles < ActiveRecord::Migration[4.2]
22
def up
33
create_table :event_import_files do |t|
44
t.references :parent, index: true
5+
t.string :content_type
6+
t.integer :size
57
t.references :user, index: true
68
t.text :note
79
t.datetime :imported_at
10+
t.string :event_import_file_name
11+
t.string :event_import_content_type
12+
t.integer :event_import_file_size
13+
t.datetime :event_import_updated_at
814
t.string :edit_mode
915

1016
t.timestamps

db/migrate/20140110122216_create_user_import_files.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ def change
44
t.references :user, index: true
55
t.text :note
66
t.datetime :executed_at
7+
t.string :user_import_file_name
8+
t.string :user_import_content_type
9+
t.integer :user_import_file_size
10+
t.datetime :user_import_updated_at
711
t.string :user_import_fingerprint
812
t.string :edit_mode
913
t.text :error_message

lib/tasks/enju_library_tasks.rake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ namespace :enju_library do
1313
next if basename == "library_groups"
1414
ActiveRecord::FixtureSet.create_fixtures("db/fixtures/enju_library", basename)
1515
end
16-
Shelf.create!(name: "web", library: Library.find_by(name: "web"))
17-
Shelf.create!(name: "first_shelf", library: Library.find_by(name: "yours"))
16+
17+
if Shelf.count.zero?
18+
Shelf.create!(name: "web", library: Library.find_by(name: "web"))
19+
Shelf.create!(name: "first_shelf", library: Library.find_by(name: "yours"))
20+
end
1821
end
1922

2023
desc "upgrade enju_library"

0 commit comments

Comments
 (0)