diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/schema/db2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/db2.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/db2.sql (renamed from activerecord/test/fixtures/db_definitions/db2.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/db22.drop.sql (renamed from activerecord/test/fixtures/db_definitions/db22.drop.sql) | 1 | ||||
-rw-r--r-- | activerecord/test/schema/db22.sql (renamed from activerecord/test/fixtures/db_definitions/db22.sql) | 1 | ||||
-rw-r--r-- | activerecord/test/schema/firebird.drop.sql (renamed from activerecord/test/fixtures/db_definitions/firebird.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/firebird.sql (renamed from activerecord/test/fixtures/db_definitions/firebird.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/firebird2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/firebird2.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/firebird2.sql (renamed from activerecord/test/fixtures/db_definitions/firebird2.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/frontbase.drop.sql (renamed from activerecord/test/fixtures/db_definitions/frontbase.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/frontbase.sql (renamed from activerecord/test/fixtures/db_definitions/frontbase.sql) | 8 | ||||
-rw-r--r-- | activerecord/test/schema/frontbase2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/frontbase2.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/frontbase2.sql (renamed from activerecord/test/fixtures/db_definitions/frontbase2.sql) | 8 | ||||
-rw-r--r-- | activerecord/test/schema/openbase.drop.sql (renamed from activerecord/test/fixtures/db_definitions/openbase.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/openbase.sql (renamed from activerecord/test/fixtures/db_definitions/openbase.sql) | 100 | ||||
-rw-r--r-- | activerecord/test/schema/openbase2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/openbase2.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/openbase2.sql (renamed from activerecord/test/fixtures/db_definitions/openbase2.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/oracle.drop.sql (renamed from activerecord/test/fixtures/db_definitions/oracle.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/oracle.sql (renamed from activerecord/test/fixtures/db_definitions/oracle.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/oracle2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/oracle2.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/oracle2.sql (renamed from activerecord/test/fixtures/db_definitions/oracle2.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/postgresql.drop.sql (renamed from activerecord/test/fixtures/db_definitions/postgresql.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/postgresql.sql (renamed from activerecord/test/fixtures/db_definitions/postgresql.sql) | 4 | ||||
-rw-r--r-- | activerecord/test/schema/postgresql2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/postgresql2.drop.sql) | 1 | ||||
-rw-r--r-- | activerecord/test/schema/postgresql2.sql (renamed from activerecord/test/fixtures/db_definitions/postgresql2.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/schema.rb (renamed from activerecord/test/fixtures/db_definitions/schema.rb) | 38 | ||||
-rw-r--r-- | activerecord/test/schema/schema2.rb (renamed from activerecord/test/fixtures/db_definitions/schema2.rb) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/sqlite.drop.sql (renamed from activerecord/test/fixtures/db_definitions/sqlite.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/sqlite.sql (renamed from activerecord/test/fixtures/db_definitions/sqlite.sql) | 6 | ||||
-rw-r--r-- | activerecord/test/schema/sqlite2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/sqlite2.drop.sql) | 1 | ||||
-rw-r--r-- | activerecord/test/schema/sqlite2.sql (renamed from activerecord/test/fixtures/db_definitions/sqlite2.sql) | 1 | ||||
-rw-r--r-- | activerecord/test/schema/sybase.drop.sql (renamed from activerecord/test/fixtures/db_definitions/sybase.drop.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/sybase.sql (renamed from activerecord/test/fixtures/db_definitions/sybase.sql) | 0 | ||||
-rw-r--r-- | activerecord/test/schema/sybase2.drop.sql (renamed from activerecord/test/fixtures/db_definitions/sybase2.drop.sql) | 2 | ||||
-rw-r--r-- | activerecord/test/schema/sybase2.sql (renamed from activerecord/test/fixtures/db_definitions/sybase2.sql) | 0 |
34 files changed, 82 insertions, 89 deletions
diff --git a/activerecord/test/fixtures/db_definitions/db2.drop.sql b/activerecord/test/schema/db2.drop.sql index 286066ea20..286066ea20 100644 --- a/activerecord/test/fixtures/db_definitions/db2.drop.sql +++ b/activerecord/test/schema/db2.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/db2.sql b/activerecord/test/schema/db2.sql index 6e088bd8ed..6e088bd8ed 100644 --- a/activerecord/test/fixtures/db_definitions/db2.sql +++ b/activerecord/test/schema/db2.sql diff --git a/activerecord/test/fixtures/db_definitions/db22.drop.sql b/activerecord/test/schema/db22.drop.sql index df00ffd7c9..09681bf446 100644 --- a/activerecord/test/fixtures/db_definitions/db22.drop.sql +++ b/activerecord/test/schema/db22.drop.sql @@ -1,2 +1 @@ DROP TABLE courses; - diff --git a/activerecord/test/fixtures/db_definitions/db22.sql b/activerecord/test/schema/db22.sql index 853e2c73b1..246ca0f6c4 100644 --- a/activerecord/test/fixtures/db_definitions/db22.sql +++ b/activerecord/test/schema/db22.sql @@ -2,4 +2,3 @@ CREATE TABLE courses ( id INT NOT NULL PRIMARY KEY, name VARCHAR(255) NOT NULL ); - diff --git a/activerecord/test/fixtures/db_definitions/firebird.drop.sql b/activerecord/test/schema/firebird.drop.sql index 378843bf9b..378843bf9b 100644 --- a/activerecord/test/fixtures/db_definitions/firebird.drop.sql +++ b/activerecord/test/schema/firebird.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/firebird.sql b/activerecord/test/schema/firebird.sql index 9ed6453ff7..9ed6453ff7 100644 --- a/activerecord/test/fixtures/db_definitions/firebird.sql +++ b/activerecord/test/schema/firebird.sql diff --git a/activerecord/test/fixtures/db_definitions/firebird2.drop.sql b/activerecord/test/schema/firebird2.drop.sql index c59fb1f2ff..c59fb1f2ff 100644 --- a/activerecord/test/fixtures/db_definitions/firebird2.drop.sql +++ b/activerecord/test/schema/firebird2.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/firebird2.sql b/activerecord/test/schema/firebird2.sql index c1bc251fbc..c1bc251fbc 100644 --- a/activerecord/test/fixtures/db_definitions/firebird2.sql +++ b/activerecord/test/schema/firebird2.sql diff --git a/activerecord/test/fixtures/db_definitions/frontbase.drop.sql b/activerecord/test/schema/frontbase.drop.sql index 58ec56bd4f..58ec56bd4f 100644 --- a/activerecord/test/fixtures/db_definitions/frontbase.drop.sql +++ b/activerecord/test/schema/frontbase.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/frontbase.sql b/activerecord/test/schema/frontbase.sql index 83441798b4..6945a385c6 100644 --- a/activerecord/test/fixtures/db_definitions/frontbase.sql +++ b/activerecord/test/schema/frontbase.sql @@ -13,7 +13,7 @@ CREATE TABLE funny_jokes ( PRIMARY KEY (id) ); SET UNIQUE FOR funny_jokes(id); - + CREATE TABLE companies ( id integer DEFAULT unique, "type" character varying(50), @@ -134,11 +134,11 @@ SET UNIQUE FOR colnametests(id); CREATE TABLE mixins ( id integer DEFAULT unique, parent_id integer, - type character varying(100), + type character varying(100), pos integer, lft integer, rgt integer, - root_id integer, + root_id integer, created_at timestamp, updated_at timestamp, PRIMARY KEY (id) @@ -161,7 +161,7 @@ CREATE TABLE readers ( ); SET UNIQUE FOR readers(id); -CREATE TABLE binaries ( +CREATE TABLE binaries ( id integer DEFAULT unique, data BLOB, PRIMARY KEY (id) diff --git a/activerecord/test/fixtures/db_definitions/frontbase2.drop.sql b/activerecord/test/schema/frontbase2.drop.sql index 17b9ad46d7..17b9ad46d7 100644 --- a/activerecord/test/fixtures/db_definitions/frontbase2.drop.sql +++ b/activerecord/test/schema/frontbase2.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/frontbase2.sql b/activerecord/test/schema/frontbase2.sql index 42f4bb78c9..80063b5989 100644 --- a/activerecord/test/fixtures/db_definitions/frontbase2.sql +++ b/activerecord/test/schema/frontbase2.sql @@ -1,4 +1,4 @@ -CREATE TABLE courses (
- id integer DEFAULT unique,
- name varchar(100)
-);
+CREATE TABLE courses ( + id integer DEFAULT unique, + name varchar(100) +); diff --git a/activerecord/test/fixtures/db_definitions/openbase.drop.sql b/activerecord/test/schema/openbase.drop.sql index fb40e3f213..fb40e3f213 100644 --- a/activerecord/test/fixtures/db_definitions/openbase.drop.sql +++ b/activerecord/test/schema/openbase.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/openbase.sql b/activerecord/test/schema/openbase.sql index ec0029b0f6..cb804ae7b2 100644 --- a/activerecord/test/fixtures/db_definitions/openbase.sql +++ b/activerecord/test/schema/openbase.sql @@ -4,7 +4,7 @@ CREATE TABLE accounts ( credit_limit integer ) go -CREATE PRIMARY KEY accounts (id) +CREATE PRIMARY KEY accounts (id) go CREATE TABLE funny_jokes ( @@ -23,9 +23,9 @@ CREATE TABLE companies ( name char(50), client_of integer, rating integer default 1 -) +) go -CREATE PRIMARY KEY companies (id) +CREATE PRIMARY KEY companies (id) go CREATE TABLE developers_projects ( @@ -33,7 +33,7 @@ CREATE TABLE developers_projects ( project_id integer NOT NULL, joined_on date, access_level integer default 1 -) +) go CREATE TABLE developers ( @@ -42,18 +42,18 @@ CREATE TABLE developers ( salary integer DEFAULT 70000, created_at datetime, updated_at datetime -) +) go -CREATE PRIMARY KEY developers (id) +CREATE PRIMARY KEY developers (id) go CREATE TABLE projects ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, name char(100), type char(255) -) +) go -CREATE PRIMARY KEY projects (id) +CREATE PRIMARY KEY projects (id) go CREATE TABLE topics ( @@ -69,9 +69,9 @@ CREATE TABLE topics ( replies_count integer default 0, parent_id integer, type char(50) -) +) go -CREATE PRIMARY KEY topics (id) +CREATE PRIMARY KEY topics (id) go CREATE TABLE customers ( @@ -82,9 +82,9 @@ CREATE TABLE customers ( address_city char, address_country char, gps_location char -) +) go -CREATE PRIMARY KEY customers (id) +CREATE PRIMARY KEY customers (id) go CREATE TABLE orders ( @@ -92,33 +92,33 @@ CREATE TABLE orders ( name char, billing_customer_id integer, shipping_customer_id integer -) +) go -CREATE PRIMARY KEY orders (id) +CREATE PRIMARY KEY orders (id) go CREATE TABLE movies ( movieid integer NOT NULL UNIQUE INDEX DEFAULT _rowid, name text -) +) go -CREATE PRIMARY KEY movies (movieid) +CREATE PRIMARY KEY movies (movieid) go CREATE TABLE subscribers ( nick CHAR(100) NOT NULL DEFAULT _rowid, name CHAR(100) -) +) go -CREATE PRIMARY KEY subscribers (nick) +CREATE PRIMARY KEY subscribers (nick) go CREATE TABLE booleantests ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, value boolean -) +) go -CREATE PRIMARY KEY booleantests (id) +CREATE PRIMARY KEY booleantests (id) go CREATE TABLE defaults ( @@ -135,7 +135,7 @@ CREATE TABLE defaults ( positive_integer integer default 1, negative_integer integer default -1, decimal_number money default 2.78 -) +) go CREATE PRIMARY KEY defaults (id) go @@ -143,50 +143,50 @@ go CREATE TABLE auto_id_tests ( auto_id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, value integer -) +) go -CREATE PRIMARY KEY auto_id_tests (auto_id) +CREATE PRIMARY KEY auto_id_tests (auto_id) go CREATE TABLE entrants ( id integer NOT NULL UNIQUE INDEX, name text NOT NULL, course_id integer NOT NULL -) +) go -CREATE PRIMARY KEY entrants (id) +CREATE PRIMARY KEY entrants (id) go CREATE TABLE colnametests ( id integer UNIQUE INDEX , references integer NOT NULL -) +) go -CREATE PRIMARY KEY colnametests (id) +CREATE PRIMARY KEY colnametests (id) go CREATE TABLE mixins ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, parent_id integer, - type char, + type char, pos integer, lft integer, rgt integer, - root_id integer, + root_id integer, created_at timestamp, updated_at timestamp -) +) go -CREATE PRIMARY KEY mixins (id) +CREATE PRIMARY KEY mixins (id) go CREATE TABLE people ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, first_name text, lock_version integer default 0 -) +) go -CREATE PRIMARY KEY people (id) +CREATE PRIMARY KEY people (id) go CREATE TABLE readers ( @@ -198,19 +198,19 @@ go CREATE PRIMARY KEY readers (id) go -CREATE TABLE binaries ( +CREATE TABLE binaries ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, data object -) +) go -CREATE PRIMARY KEY binaries (id) +CREATE PRIMARY KEY binaries (id) go CREATE TABLE computers ( id integer UNIQUE INDEX , developer integer NOT NULL, extendedWarranty integer NOT NULL -) +) go CREATE TABLE posts ( @@ -219,7 +219,7 @@ CREATE TABLE posts ( title char(255), type char(255), body text -) +) go CREATE TABLE comments ( @@ -227,58 +227,58 @@ CREATE TABLE comments ( post_id integer, type char(255), body text -) +) go CREATE TABLE authors ( id integer UNIQUE INDEX , name char(255) default NULL -) +) go CREATE TABLE tasks ( id integer NOT NULL UNIQUE INDEX DEFAULT _rowid, starting datetime, ending datetime -) +) go -CREATE PRIMARY KEY tasks (id) +CREATE PRIMARY KEY tasks (id) go CREATE TABLE categories ( id integer UNIQUE INDEX , name char(255), type char(255) -) +) go CREATE TABLE categories_posts ( category_id integer NOT NULL, post_id integer NOT NULL -) +) go CREATE TABLE fk_test_has_pk ( id INTEGER NOT NULL DEFAULT _rowid -) +) go -CREATE PRIMARY KEY fk_test_has_pk (id) +CREATE PRIMARY KEY fk_test_has_pk (id) go CREATE TABLE fk_test_has_fk ( id INTEGER NOT NULL DEFAULT _rowid, fk_id INTEGER NOT NULL REFERENCES fk_test_has_pk.id -) +) go -CREATE PRIMARY KEY fk_test_has_fk (id) +CREATE PRIMARY KEY fk_test_has_fk (id) go CREATE TABLE keyboards ( key_number integer UNIQUE INDEX DEFAULT _rowid, name char(50) -) +) go -CREATE PRIMARY KEY keyboards (key_number) +CREATE PRIMARY KEY keyboards (key_number) go CREATE TABLE legacy_things ( diff --git a/activerecord/test/fixtures/db_definitions/openbase2.drop.sql b/activerecord/test/schema/openbase2.drop.sql index ea1571da0b..ea1571da0b 100644 --- a/activerecord/test/fixtures/db_definitions/openbase2.drop.sql +++ b/activerecord/test/schema/openbase2.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/openbase2.sql b/activerecord/test/schema/openbase2.sql index a37c4f4c31..a37c4f4c31 100644 --- a/activerecord/test/fixtures/db_definitions/openbase2.sql +++ b/activerecord/test/schema/openbase2.sql diff --git a/activerecord/test/fixtures/db_definitions/oracle.drop.sql b/activerecord/test/schema/oracle.drop.sql index 21f40ed8d0..21f40ed8d0 100644 --- a/activerecord/test/fixtures/db_definitions/oracle.drop.sql +++ b/activerecord/test/schema/oracle.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/oracle.sql b/activerecord/test/schema/oracle.sql index 22ca0baa8d..22ca0baa8d 100644 --- a/activerecord/test/fixtures/db_definitions/oracle.sql +++ b/activerecord/test/schema/oracle.sql diff --git a/activerecord/test/fixtures/db_definitions/oracle2.drop.sql b/activerecord/test/schema/oracle2.drop.sql index abe7e55c31..abe7e55c31 100644 --- a/activerecord/test/fixtures/db_definitions/oracle2.drop.sql +++ b/activerecord/test/schema/oracle2.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/oracle2.sql b/activerecord/test/schema/oracle2.sql index 3c171f4f14..3c171f4f14 100644 --- a/activerecord/test/fixtures/db_definitions/oracle2.sql +++ b/activerecord/test/schema/oracle2.sql diff --git a/activerecord/test/fixtures/db_definitions/postgresql.drop.sql b/activerecord/test/schema/postgresql.drop.sql index 31e2d38743..31e2d38743 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.drop.sql +++ b/activerecord/test/schema/postgresql.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/schema/postgresql.sql index 5e38978e21..f2198f24e9 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.sql +++ b/activerecord/test/schema/postgresql.sql @@ -132,11 +132,11 @@ CREATE TABLE colnametests ( CREATE TABLE mixins ( id serial primary key, parent_id integer, - type character varying, + type character varying, pos integer, lft integer, rgt integer, - root_id integer, + root_id integer, created_at timestamp, updated_at timestamp ); diff --git a/activerecord/test/fixtures/db_definitions/postgresql2.drop.sql b/activerecord/test/schema/postgresql2.drop.sql index df00ffd7c9..09681bf446 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql2.drop.sql +++ b/activerecord/test/schema/postgresql2.drop.sql @@ -1,2 +1 @@ DROP TABLE courses; - diff --git a/activerecord/test/fixtures/db_definitions/postgresql2.sql b/activerecord/test/schema/postgresql2.sql index 4605b9384e..4605b9384e 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql2.sql +++ b/activerecord/test/schema/postgresql2.sql diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/schema/schema.rb index d5affc2ab1..2d187a601a 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -4,7 +4,7 @@ ActiveRecord::Schema.define do # moving the sql files under activerecord/test/fixtures/db_definitions # to this file, schema.rb. if adapter_name == "MySQL" - + # Please keep these create table statements in alphabetical order # unless the ordering matters. In which case, define them below create_table :accounts, :force => true do |t| @@ -20,7 +20,7 @@ ActiveRecord::Schema.define do t.primary_key :auto_id t.integer :value end - + create_table :binaries, :force => true do |t| t.binary :data end @@ -42,7 +42,7 @@ ActiveRecord::Schema.define do create_table :colnametests, :force => true do |t| t.integer :references, :null => false end - + create_table :comments, :force => true do |t| t.integer :post_id, :null => false t.text :body, :null => false @@ -57,12 +57,12 @@ ActiveRecord::Schema.define do t.integer :client_of t.integer :rating, :default => 1 end - + create_table :computers, :force => true do |t| t.integer :developer, :null => false t.integer :extendedWarranty, :null => false end - + create_table :customers, :force => true do |t| t.string :name @@ -95,25 +95,25 @@ ActiveRecord::Schema.define do create_table :funny_jokes, :force => true do |t| t.string :name end - + create_table :keyboards, :force => true, :id => false do |t| t.primary_key :key_number t.string :name end - + create_table :legacy_things, :force => true do |t| t.integer :tps_report_number t.integer :version, :null => false, :default => 0 end - + create_table :minimalistics, :force => true do |t| end - + create_table :mixed_case_monkeys, :force => true, :id => false do |t| t.primary_key :monkeyID t.integer :fleaCount end - + create_table :mixins, :force => true do |t| t.integer :parent_id t.integer :pos @@ -124,12 +124,12 @@ ActiveRecord::Schema.define do t.integer :root_id t.string :type end - + create_table :movies, :force => true, :id => false do |t| t.primary_key :movieid t.string :name end - + create_table :numeric_data, :force => true do |t| t.decimal :bank_balance, :precision => 10, :scale => 2 t.decimal :big_bank_balance, :precision => 15, :scale => 2 @@ -137,7 +137,7 @@ ActiveRecord::Schema.define do t.decimal :my_house_population, :precision => 2, :scale => 0 t.decimal :decimal_number_with_default, :precision => 3, :scale => 2, :default => 2.78 end - + create_table :orders, :force => true do |t| t.string :name t.integer :billing_customer_id @@ -148,7 +148,7 @@ ActiveRecord::Schema.define do t.string :first_name, :null => false t.integer :lock_version, :null => false, :default => 0 end - + create_table :posts, :force => true do |t| t.integer :author_id t.string :title, :null => false @@ -160,12 +160,12 @@ ActiveRecord::Schema.define do t.string :name t.string :type end - + create_table :readers, :force => true do |t| t.integer :post_id, :null => false t.integer :person_id, :null => false end - + create_table :subscribers, :force => true, :id => false do |t| t.string :nick, :null => false t.string :name @@ -262,11 +262,11 @@ ActiveRecord::Schema.define do create_table :lock_without_defaults, :force => true do |t| t.column :lock_version, :integer end - + create_table :lock_without_defaults_cust, :force => true do |t| t.column :custom_lock_version, :integer end - + create_table :items, :force => true do |t| t.column :name, :integer end @@ -277,7 +277,7 @@ ActiveRecord::Schema.define do t.column :name, :string end end - + # For sqlserver 2000+, ensure real columns can be used if adapter_name.starts_with?("SQLServer") create_table :table_with_real_columns, :force => true do |t| diff --git a/activerecord/test/fixtures/db_definitions/schema2.rb b/activerecord/test/schema/schema2.rb index 863237d271..863237d271 100644 --- a/activerecord/test/fixtures/db_definitions/schema2.rb +++ b/activerecord/test/schema/schema2.rb diff --git a/activerecord/test/fixtures/db_definitions/sqlite.drop.sql b/activerecord/test/schema/sqlite.drop.sql index 419cdaa52c..419cdaa52c 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.drop.sql +++ b/activerecord/test/schema/sqlite.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/sqlite.sql b/activerecord/test/schema/sqlite.sql index 2e19dd2533..27966790b8 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.sql +++ b/activerecord/test/schema/sqlite.sql @@ -108,11 +108,11 @@ CREATE TABLE 'colnametests' ( CREATE TABLE 'mixins' ( 'id' INTEGER NOT NULL PRIMARY KEY, 'parent_id' INTEGER DEFAULT NULL, - 'type' VARCHAR(40) DEFAULT NULL, + 'type' VARCHAR(40) DEFAULT NULL, 'pos' INTEGER DEFAULT NULL, 'lft' INTEGER DEFAULT NULL, 'rgt' INTEGER DEFAULT NULL, - 'root_id' INTEGER DEFAULT NULL, + 'root_id' INTEGER DEFAULT NULL, 'created_at' DATETIME DEFAULT NULL, 'updated_at' DATETIME DEFAULT NULL ); @@ -161,7 +161,7 @@ CREATE TABLE 'authors' ( ); CREATE TABLE 'tasks' ( - 'id' INTEGER NOT NULL PRIMARY KEY, + 'id' INTEGER NOT NULL PRIMARY KEY, 'starting' DATETIME DEFAULT NULL, 'ending' DATETIME DEFAULT NULL ); diff --git a/activerecord/test/fixtures/db_definitions/sqlite2.drop.sql b/activerecord/test/schema/sqlite2.drop.sql index df00ffd7c9..09681bf446 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite2.drop.sql +++ b/activerecord/test/schema/sqlite2.drop.sql @@ -1,2 +1 @@ DROP TABLE courses; - diff --git a/activerecord/test/fixtures/db_definitions/sqlite2.sql b/activerecord/test/schema/sqlite2.sql index 5c0d231bbc..19b123968a 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite2.sql +++ b/activerecord/test/schema/sqlite2.sql @@ -2,4 +2,3 @@ CREATE TABLE 'courses' ( 'id' INTEGER NOT NULL PRIMARY KEY, 'name' VARCHAR(255) NOT NULL ); - diff --git a/activerecord/test/fixtures/db_definitions/sybase.drop.sql b/activerecord/test/schema/sybase.drop.sql index ebb91931fb..ebb91931fb 100644 --- a/activerecord/test/fixtures/db_definitions/sybase.drop.sql +++ b/activerecord/test/schema/sybase.drop.sql diff --git a/activerecord/test/fixtures/db_definitions/sybase.sql b/activerecord/test/schema/sybase.sql index 9f0cb3ebe2..9f0cb3ebe2 100644 --- a/activerecord/test/fixtures/db_definitions/sybase.sql +++ b/activerecord/test/schema/sybase.sql diff --git a/activerecord/test/fixtures/db_definitions/sybase2.drop.sql b/activerecord/test/schema/sybase2.drop.sql index f4ce96fec0..ea1571da0b 100644 --- a/activerecord/test/fixtures/db_definitions/sybase2.drop.sql +++ b/activerecord/test/schema/sybase2.drop.sql @@ -1,4 +1,2 @@ DROP TABLE courses go - - diff --git a/activerecord/test/fixtures/db_definitions/sybase2.sql b/activerecord/test/schema/sybase2.sql index 88f9d329a3..88f9d329a3 100644 --- a/activerecord/test/fixtures/db_definitions/sybase2.sql +++ b/activerecord/test/schema/sybase2.sql |