Current Database Schema

Should have regenerated this file back at Revision 458.
master
Jacques Distler 2010-01-01 13:02:16 -06:00
parent f66fc4de4d
commit 753520eb70
1 changed files with 52 additions and 45 deletions

View File

@ -1,26 +1,33 @@
# This file is autogenerated. Instead of editing this file, please use the
# migrations feature of ActiveRecord to incrementally modify your database, and
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 2) do
ActiveRecord::Schema.define(:version => 20091021024908) do
create_table "pages", :force => true do |t|
t.column "created_at", :datetime, :null => false
t.column "updated_at", :datetime, :null => false
t.column "web_id", :integer, :default => 0, :null => false
t.column "locked_by", :string, :limit => 60
t.column "name", :string, :limit => 60
t.column "locked_at", :datetime
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "web_id", :default => 0, :null => false
t.string "locked_by", :limit => 60
t.string "name"
t.datetime "locked_at"
end
create_table "revisions", :force => true do |t|
t.column "created_at", :datetime, :null => false
t.column "updated_at", :datetime, :null => false
t.column "revised_at", :datetime, :null => false
t.column "page_id", :integer, :default => 0, :null => false
t.column "content", :text, :default => "", :null => false
t.column "author", :string, :limit => 60
t.column "ip", :string, :limit => 60
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "revised_at", :null => false
t.integer "page_id", :default => 0, :null => false
t.text "content", :limit => 16777215
t.string "author", :limit => 60
t.string "ip", :limit => 60
end
add_index "revisions", ["author"], :name => "index_revisions_on_author"
@ -28,51 +35,51 @@ ActiveRecord::Schema.define(:version => 2) do
add_index "revisions", ["page_id"], :name => "index_revisions_on_page_id"
create_table "sessions", :force => true do |t|
t.column "session_id", :string
t.column "data", :text
t.column "updated_at", :datetime
t.string "session_id"
t.text "data"
t.datetime "updated_at"
end
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
create_table "system", :force => true do |t|
t.column "password", :string, :limit => 60
t.string "password", :limit => 60
end
create_table "webs", :force => true do |t|
t.column "created_at", :datetime, :null => false
t.column "updated_at", :datetime, :null => false
t.column "name", :string, :limit => 60, :default => "", :null => false
t.column "address", :string, :limit => 60, :default => "", :null => false
t.column "password", :string, :limit => 60
t.column "additional_style", :string
t.column "allow_uploads", :integer, :default => 1
t.column "published", :integer, :default => 0
t.column "count_pages", :integer, :default => 0
t.column "markup", :string, :limit => 50, :default => "markdownMML"
t.column "color", :string, :limit => 6, :default => "008B26"
t.column "max_upload_size", :integer, :default => 100
t.column "safe_mode", :integer, :default => 0
t.column "brackets_only", :integer, :default => 0
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "name", :limit => 60, :default => "", :null => false
t.string "address", :limit => 60, :default => "", :null => false
t.string "password", :limit => 60
t.text "additional_style"
t.integer "allow_uploads", :default => 1
t.integer "published", :default => 0
t.integer "count_pages", :default => 0
t.string "markup", :limit => 50, :default => "markdownMML"
t.string "color", :limit => 6, :default => "008B26"
t.integer "max_upload_size", :default => 100
t.integer "safe_mode", :default => 0
t.integer "brackets_only", :default => 0
end
create_table "wiki_files", :force => true do |t|
t.column "created_at", :datetime, :null => false
t.column "updated_at", :datetime, :null => false
t.column "web_id", :integer, :null => false
t.column "file_name", :string, :null => false
t.column "description", :string, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "web_id", :null => false
t.string "file_name", :null => false
t.string "description", :null => false
end
create_table "wiki_references", :force => true do |t|
t.column "created_at", :datetime, :null => false
t.column "updated_at", :datetime, :null => false
t.column "page_id", :integer, :default => 0, :null => false
t.column "referenced_name", :string, :limit => 60, :default => "", :null => false
t.column "link_type", :string, :limit => 1, :default => "", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "page_id", :default => 0, :null => false
t.string "referenced_name", :default => "", :null => false
t.string "link_type", :limit => 1, :default => "", :null => false
end
add_index "wiki_references", ["referenced_name"], :name => "index_wiki_references_on_referenced_name"
add_index "wiki_references", ["page_id"], :name => "index_wiki_references_on_page_id"
add_index "wiki_references", ["referenced_name"], :name => "index_wiki_references_on_referenced_name"
end