diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-15 07:57:06 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-15 07:57:06 +0000 |
commit | 333463679ad4c66e43d1cbd11bec3570e9c719e0 (patch) | |
tree | a3a51528c2ca90a7d02bbbeea11425cc899e7c9e /activerecord | |
parent | 656a20a4d3d2a18b0752fda1110b4d6569528bf2 (diff) | |
download | rails-333463679ad4c66e43d1cbd11bec3570e9c719e0.tar.gz rails-333463679ad4c66e43d1cbd11bec3570e9c719e0.tar.bz2 rails-333463679ad4c66e43d1cbd11bec3570e9c719e0.zip |
Revert [7894] and apply to adapter instead. References #9588.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/Rakefile | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index 1ded766c73..fd393d6020 100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -138,37 +138,6 @@ task :build_frontbase_databases => 'frontbase:build_databases' task :rebuild_frontbase_databases => 'frontbase:rebuild_databases' -namespace :sqlserver do - desc 'Build the SQL Server test databases' - task :build_databases do - # Define a user named 'rails' in SQL Server with all privileges granted - # Use an empty password for user 'rails', or alternatively use the OSQLPASSWORD environment variable - # which allows you to set a default password for the current session. - %x( osql -S localhost -U rails -Q "create database activerecord_unittest" -P ) - %x( osql -S localhost -U rails -Q "create database activerecord_unittest2" -P ) - %x( osql -S localhost -U rails -d activerecord_unittest -Q "exec sp_grantdbaccess 'rails'" -P ) - %x( osql -S localhost -U rails -d activerecord_unittest2 -Q "exec sp_grantdbaccess 'rails'" -P ) - %x( osql -S localhost -U rails -d activerecord_unittest -Q "grant BACKUP DATABASE, BACKUP LOG, CREATE DEFAULT, CREATE FUNCTION, CREATE PROCEDURE, CREATE RULE, CREATE TABLE, CREATE VIEW to 'rails';" -P ) - %x( osql -S localhost -U rails -d activerecord_unittest2 -Q "grant BACKUP DATABASE, BACKUP LOG, CREATE DEFAULT, CREATE FUNCTION, CREATE PROCEDURE, CREATE RULE, CREATE TABLE, CREATE VIEW to 'rails';" -P ) - %x( osql -S localhost -U rails -d activerecord_unittest -i #{File.join(SCHEMA_PATH, 'sqlserver.sql')} -n -P ) - %x( osql -S localhost -U rails -d activerecord_unittest2 -i #{File.join(SCHEMA_PATH, 'sqlserver2.sql')} -n -P ) - end - - desc 'Drop the SQL Server test databases' - task :drop_databases do - %x( osql -S localhost -U rails -Q "drop database activerecord_unittest" -P ) - %x( osql -S localhost -U rails -Q "drop database activerecord_unittest2" -P ) - end - - desc 'Rebuild the SQL Server test databases' - task :rebuild_databases => [:drop_databases, :build_databases] -end - -task :build_sqlserver_databases => 'sqlserver:build_databases' -task :drop_sqlserver_databases => 'sqlserver:drop_databases' -task :rebuild_sqlserver_databases => 'sqlserver:rebuild_databases' - - # Generate the RDoc documentation Rake::RDocTask.new { |rdoc| |