Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed sqlite compat in first author creation

  • Loading branch information...
commit 0b0ae790087e7223526eb0dd2b9fb17f43ac1643 1 parent 2f69919
@jbbarth jbbarth authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 db/migrate/001_initial_creation.rb
View
5 db/migrate/001_initial_creation.rb
@@ -68,7 +68,10 @@ def self.up
# create a temporary first author to that we can log in to the admin section
# username: temp@email.com, password: !@gonow
- execute "INSERT INTO authors (created_at, modified_at, email, hashed_pass, name, url, is_active) VALUES ('#{time}', '#{time}', 'temp@email.com', '#{Author.do_password_hash('!@gonow')}', 'Temporary User', 'http://simplelog.net', 1)"
+ execute "INSERT INTO authors (created_at, modified_at, email, hashed_pass, name, url) VALUES ('#{time}', '#{time}', 'temp@email.com', '#{Author.do_password_hash('!@gonow')}', 'Temporary User', 'http://simplelog.net')"
+ a = Author.find(:first)
+ a.is_active = true
+ a.save
# create sessions table for session store (much faster!), see enabled option in env
create_table "sessions", :options => (SL_CONFIG[:DB_TYPE_MYSQL] == 'yes' ? 'ENGINE=MyISAM' : '') do |t|
Please sign in to comment.
Something went wrong with that request. Please try again.