Skip to content

Commit

Permalink
Fixed readme--it said that Postgres wasn't supported
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.typosphere.org/typo/trunk@505 820eb932-12ee-0310-9ca8-eeb645f39767
  • Loading branch information
scott committed Aug 5, 2005
1 parent 6e39e04 commit 9a5e81d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
8 changes: 3 additions & 5 deletions README
Expand Up @@ -21,13 +21,11 @@ Installation

Unpack the tgz or zip in some directory.

The first decision you have to make is whether to use sqlite or mysql. Both are supported.
There is no reason why postgres or others shouldn't work, I just don't have a sql file for
them yet.
The first decision you have to make is whether to use Sqlite, MySQL, or Postgres. All
three are supported, although Sqlite doesn't have full support for database migrations in
Rails 0.13.1.

* Create a database for typo. You can find matching schemas in the db/ folder.
If you choose sqlite make sure to create the files using the db/schema.sqlite.sql
file.
* Change the config/database.yml to reflect your newly created database configuration
* Run script/server -e production and see if it works
* Point your browser to http://your.domain.com:3000/ and follow the install process
Expand Down
2 changes: 1 addition & 1 deletion app/models/article.rb
Expand Up @@ -86,7 +86,7 @@ def set_defaults
self.published ||= 1
self.text_filter = $config['text_filter'] if self.text_filter.blank?
self.permalink = self.stripped_title if self.attributes.include?("permalink") and self.permalink.blank?
self.guid = MD5.new(self.body.to_s+self.extended.to_s+self.title.to_s+self.permalink.to_s+self.author.to_s+Time.now.to_f.to_s).to_s if self.guid.blank?
self.guid = MD5.new(self.body.to_s+self.extended.to_s+self.title.to_s+self.permalink.to_s+self.author.to_s+Time.now.to_f.to_s).to_s if self.guid.to_s.blank?
end

def transform_body
Expand Down
15 changes: 6 additions & 9 deletions config/database.yml
@@ -1,20 +1,17 @@
development:
adapter: mysql
adapter: postgresql
database: typo_dev
host: localhost
username: root
password:
username: typo

test:
adapter: mysql
adapter: postgresql
database: typo_tests
host: localhost
username: root
password:
username: typo

production:
adapter: mysql
adapter: postgresql
database: typo
host: localhost
username: root
password:
username: typo

0 comments on commit 9a5e81d

Please sign in to comment.