Revision 723:d41bf754c0f2 vendor/plugins/redmine_bibliography/db
| vendor/plugins/redmine_bibliography/db/migrate/001_create_authors.rb | ||
|---|---|---|
| 1 |
class CreateAuthors < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :authors do |t| |
|
| 4 |
t.column :user_id, :integer |
|
| 5 |
t.column :name, :string |
|
| 6 |
end |
|
| 7 |
end |
|
| 8 |
|
|
| 9 |
def self.down |
|
| 10 |
drop_table :authors |
|
| 11 |
end |
|
| 12 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/002_create_publications.rb | ||
|---|---|---|
| 1 |
class CreatePublications < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :publications do |t| |
|
| 4 |
t.column :title, :string |
|
| 5 |
t.column :reviewed, :boolean, :default => false |
|
| 6 |
end |
|
| 7 |
end |
|
| 8 |
|
|
| 9 |
def self.down |
|
| 10 |
drop_table :publications |
|
| 11 |
end |
|
| 12 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/003_create_authorships.rb | ||
|---|---|---|
| 1 |
class CreateAuthorships < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :authorships do |t| |
|
| 4 |
t.column :author_id, :integer |
|
| 5 |
t.column :publication_id, :integer |
|
| 6 |
t.column :name_on_paper, :string |
|
| 7 |
t.column :auth_order, :integer |
|
| 8 |
t.column :institution, :string |
|
| 9 |
t.column :email, :string |
|
| 10 |
end |
|
| 11 |
end |
|
| 12 |
|
|
| 13 |
def self.down |
|
| 14 |
drop_table :authorships |
|
| 15 |
end |
|
| 16 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/004_create_bibtex_entries.rb | ||
|---|---|---|
| 1 |
class CreateBibtexEntries < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :bibtex_entries do |t| |
|
| 4 |
t.column :publication_id, :integer |
|
| 5 |
t.column :entry_type, :integer |
|
| 6 |
t.column :address, :string |
|
| 7 |
t.column :annote, :string |
|
| 8 |
t.column :booktitle, :string |
|
| 9 |
t.column :chapter, :string |
|
| 10 |
t.column :crossref, :string |
|
| 11 |
t.column :edition, :string |
|
| 12 |
t.column :editor, :string |
|
| 13 |
t.column :eprint, :string |
|
| 14 |
t.column :howpublished, :string |
|
| 15 |
t.column :journal, :string |
|
| 16 |
t.column :key, :string |
|
| 17 |
t.column :month, :string |
|
| 18 |
t.column :note, :text |
|
| 19 |
t.column :number, :string |
|
| 20 |
t.column :organization, :string |
|
| 21 |
t.column :pages, :string |
|
| 22 |
t.column :publisher, :string |
|
| 23 |
t.column :school, :string |
|
| 24 |
t.column :series, :string |
|
| 25 |
t.column :type, :string |
|
| 26 |
t.column :url, :string |
|
| 27 |
t.column :volume, :integer |
|
| 28 |
t.column :year, :integer |
|
| 29 |
end |
|
| 30 |
end |
|
| 31 |
|
|
| 32 |
def self.down |
|
| 33 |
drop_table :bibtex_entries |
|
| 34 |
end |
|
| 35 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/005_create_projects_publications_join_table.rb | ||
|---|---|---|
| 1 |
class CreateProjectsPublicationsJoinTable < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :projects_publications, :id => false do |t| |
|
| 4 |
t.integer :project_id |
|
| 5 |
t.integer :publication_id |
|
| 6 |
end |
|
| 7 |
end |
|
| 8 |
|
|
| 9 |
def self.down |
|
| 10 |
drop_table :projects_publications |
|
| 11 |
end |
|
| 12 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/006_create_bibtex_entry_types.rb | ||
|---|---|---|
| 1 |
class CreateBibtexEntryTypes < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
create_table :bibtex_entry_types do |t| |
|
| 4 |
t.string :name |
|
| 5 |
|
|
| 6 |
t.timestamps |
|
| 7 |
end |
|
| 8 |
end |
|
| 9 |
|
|
| 10 |
def self.down |
|
| 11 |
drop_table :bibtex_entry_types |
|
| 12 |
end |
|
| 13 |
end |
|
| vendor/plugins/redmine_bibliography/db/migrate/007_add_external_url_column_to_publications.rb | ||
|---|---|---|
| 1 |
class AddExternalUrlColumnToPublications < ActiveRecord::Migration |
|
| 2 |
def self.up |
|
| 3 |
add_column :publications, :external_url, :string |
|
| 4 |
end |
|
| 5 |
|
|
| 6 |
def self.down |
|
| 7 |
remove_column :publications, :external_url |
|
| 8 |
end |
|
| 9 |
end |
|
| vendor/plugins/redmine_bibliography/db/seed_data/bibtex_entry_types_list.txt | ||
|---|---|---|
| 1 |
inproceedings |
|
| 2 |
conference |
|
| 3 |
article |
|
| 4 |
masterthesis |
|
| 5 |
phdthesis |
|
| 6 |
book |
|
| 7 |
booklet |
|
| 8 |
inbook |
|
| 9 |
incollection |
|
| 10 |
manual |
|
| 11 |
techreport |
|
| 12 |
proceedings |
|
| 13 |
unpublished |
|
| 14 |
misc |
|
Also available in: Unified diff