<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 config/database.yml
+config/database.yml.bak
 log/
 log/*
 *.swp</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -135,19 +135,6 @@ ActiveRecord::Schema.define(:version =&gt; 20090125222830) do
     t.string  &quot;configurable_type&quot;
   end
 
-  create_table &quot;media_player_playlist_items&quot;, :force =&gt; true do |t|
-    t.integer &quot;media_player_id&quot;
-    t.string  &quot;playlist_item_song_file_name&quot;
-    t.string  &quot;playlist_item_song_content_type&quot;
-    t.integer &quot;playlist_item_song_file_size&quot;
-  end
-
-  add_index &quot;media_player_playlist_items&quot;, [&quot;media_player_id&quot;], :name =&gt; &quot;index_media_player_playlist_items_on_media_player_id&quot;
-
-  create_table &quot;media_players&quot;, :force =&gt; true do |t|
-    t.string &quot;name&quot;
-  end
-
   create_table &quot;menu_entries&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
     t.string   &quot;link&quot;
@@ -194,6 +181,7 @@ ActiveRecord::Schema.define(:version =&gt; 20090125222830) do
     t.string   &quot;name&quot;
     t.string   &quot;title&quot;
     t.string   &quot;full_title&quot;
+    t.string   &quot;status&quot;
     t.text     &quot;body&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
@@ -204,7 +192,6 @@ ActiveRecord::Schema.define(:version =&gt; 20090125222830) do
     t.boolean  &quot;published&quot;,     :default =&gt; true
     t.boolean  &quot;linked&quot;,        :default =&gt; true
     t.boolean  &quot;show_sub_menu&quot;, :default =&gt; false
-    t.string   &quot;status&quot;
     t.datetime &quot;publish_at&quot;
     t.datetime &quot;expires_on&quot;
   end
@@ -227,11 +214,6 @@ ActiveRecord::Schema.define(:version =&gt; 20090125222830) do
     t.string &quot;display_type&quot;
   end
 
-  create_table &quot;plugin_schema_info&quot;, :id =&gt; false, :force =&gt; true do |t|
-    t.string  &quot;plugin_name&quot;
-    t.integer &quot;version&quot;
-  end
-
   create_table &quot;posts&quot;, :force =&gt; true do |t|
     t.integer  &quot;user_id&quot;
     t.integer  &quot;topic_id&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,11 @@ module Ansuz
           theme = @themes.detect{|t| t == theme_choice}
           if( theme )
             @state = :theme_installed
-            return SiteSetting.find_or_create_by_name(:default).update_attribute(:user_theme_name, theme)
+            begin
+              return SiteSetting.find_or_create_by_name(:default).update_attribute(:user_theme_name, theme)
+            rescue
+              STDERR.puts &quot;Badness happened trying to set the default theme. SQLite does this a lot.&quot;
+            end
           else
             @state = :invalid_theme
             @stdout.puts &quot;[ansuz] invalid theme.&quot;
@@ -62,7 +66,7 @@ module Ansuz
             config[&quot;socket&quot;]   = get_user_response_for(&quot;[ansuz] Socket (/var/run/mysqld/mysqld.sock): &quot;, &quot;/var/run/mysqld/mysqld.sock&quot;)
             config[&quot;database&quot;] = get_user_response_for(&quot;[ansuz] Database Name Prefix (ansuz):&quot;, &quot;ansuz&quot;)
           else
-            config[&quot;database&quot;] = get_user_response_for(&quot;[ansuz] Database Location (db/development.sqlite):&quot;, &quot;db&quot;)
+            config[&quot;database&quot;] = get_user_response_for(&quot;[ansuz] Database Location (db/development.sqlite):&quot;, &quot;db/&quot;)
           end
 
           create_config_for_environment([&quot;production&quot;,&quot;development&quot;,&quot;test&quot;], config)
@@ -88,16 +92,17 @@ module Ansuz
         create_database
       end
 
-      @stdout.puts &quot;[ansuz] Migrating tables ..&quot;
+      @stdout.puts &quot;[ansuz] Migrating plugins ..&quot;
       Kernel.silence_stream(@stdout) do
-        migrate_database
+        migrate_plugins
       end
 
-      @stdout.puts &quot;[ansuz] Migrating plugins ..&quot;
+      @stdout.puts &quot;[ansuz] Migrating tables ..&quot;
       Kernel.silence_stream(@stdout) do
-        migrate_plugins
+        migrate_database
       end
 
+
       # Create public/uploads directory for FCKeditor 
       create_fckeditor_uploads_dir
 </diff>
      <filename>lib/ansuz/installer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -29,18 +29,20 @@ describe Ansuz::Installer do
       @installer.state.should == :user_doesnt_want_database_yaml
     end
 
+    # You may be tempted to use sqlite for tests, but then you'd be in a world of pain. SQLite - is - the - devil
     it &quot;should prompt the user if he/she wants a database.yml created for them&quot; do
       @stdin.write &quot;y\n&quot;
       @installer.create_db_config &quot;pooptown&quot;
-      @stdin.write &quot;sqlite&quot;
-      #@stdin.write &quot;localhost&quot;
-      #@stdin.write &quot;root&quot;
-      #@stdin.write &quot;&quot;
-      #@stdin.write &quot;database&quot;
+      @stdin.write &quot;mysql\n&quot;
+      @stdin.write &quot;localhost&quot;
+      @stdin.write &quot;root&quot;
+      @stdin.write &quot;&quot;
+      @stdin.write &quot;\n&quot;
       @installer.state.should == :database_yaml_created_successfully
     end
 
     it &quot;should run all the necessary rake tasks to get ansuz running&quot; do
+      @stdin.write &quot;y\n&quot;
       @installer.install
       @installer.state.should == :installation_complete
       File.exists?( File.join(RAILS_ROOT, &quot;db&quot;, &quot;schema.rb&quot; )).should == true</diff>
      <filename>spec/ansuz_installer_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9f9b5a0222e39e11773fdb6f8d4408d1d9492a6d</id>
    </parent>
  </parents>
  <author>
    <name>James Cook</name>
    <email>james@isotope11.com</email>
  </author>
  <url>http://github.com/knewter/ansuz/commit/8c0a31046989424ffe5e7dbeb0af0f05bab226ec</url>
  <id>8c0a31046989424ffe5e7dbeb0af0f05bab226ec</id>
  <committed-date>2009-01-29T17:27:02-08:00</committed-date>
  <authored-date>2009-01-29T17:27:02-08:00</authored-date>
  <message>fixed more nastiness in installer. gave up on sqlite being useful.</message>
  <tree>abade8fbf72c63469852aed0ee77b5c44c309f0f</tree>
  <committer>
    <name>James Cook</name>
    <email>james@isotope11.com</email>
  </committer>
</commit>
