# HG changeset patch # User luisf # Date 1302521658 -3600 # Node ID b97577523b0c714455eb6c3e45e3b25a8c336341 # Parent fecd4b2f4b7777217fd170505f29e7186e23f1db migration for bibtex_entries db table diff -r fecd4b2f4b77 -r b97577523b0c vendor/plugins/redmine_bibliography/db/migrate/004_create_bibtex_entries.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/db/migrate/004_create_bibtex_entries.rb Mon Apr 11 12:34:18 2011 +0100 @@ -0,0 +1,34 @@ +class CreateBibtexEntries < ActiveRecord::Migration + def self.up + create_table :bibtex_entries do |t| + t.column :entry_type, :string + t.column :address, :string + t.column :annote, :string + t.column :booktitle, :string + t.column :chapter, :string + t.column :crossref, :string + t.column :edition, :string + t.column :editor, :string + t.column :eprint, :string + t.column :howpublished, :string + t.column :journal, :string + t.column :key, :string + t.column :month, :string + t.column :note, :text + t.column :number, :string + t.column :organization, :string + t.column :pages, :string + t.column :publisher, :string + t.column :school, :string + t.column :series, :string + t.column :type, :string + t.column :url, :string + t.column :volume, :integer + t.column :year, :integer + end + end + + def self.down + drop_table :bibtex_entries + end +end