composite_primary_keys 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.rdoc +4 -1
- data/lib/composite_primary_keys.rb +5 -1
- data/lib/composite_primary_keys/arel/visitors/to_sql.rb +24 -0
- data/lib/composite_primary_keys/associations/association_scope.rb +32 -58
- data/lib/composite_primary_keys/associations/join_dependency/join_association.rb +22 -22
- data/lib/composite_primary_keys/associations/preloader/association.rb +12 -6
- data/lib/composite_primary_keys/associations/preloader/belongs_to.rb +19 -19
- data/lib/composite_primary_keys/attribute_methods/primary_key.rb +1 -2
- data/lib/composite_primary_keys/attribute_methods/read.rb +2 -2
- data/lib/composite_primary_keys/attribute_methods/write.rb +1 -1
- data/lib/composite_primary_keys/composite_predicates.rb +55 -50
- data/lib/composite_primary_keys/composite_relation.rb +48 -48
- data/lib/composite_primary_keys/connection_adapters/abstract/connection_specification_changes.rb +2 -2
- data/lib/composite_primary_keys/connection_adapters/postgresql_adapter.rb +19 -46
- data/lib/composite_primary_keys/connection_adapters/sqlserver_adapter.rb +8 -4
- data/lib/composite_primary_keys/fixtures.rb +26 -22
- data/lib/composite_primary_keys/locking/optimistic.rb +54 -55
- data/lib/composite_primary_keys/relation.rb +15 -8
- data/lib/composite_primary_keys/relation/batches.rb +23 -19
- data/lib/composite_primary_keys/relation/calculations.rb +4 -2
- data/lib/composite_primary_keys/relation/finder_methods.rb +33 -27
- data/lib/composite_primary_keys/relation/predicate_builder.rb +18 -3
- data/lib/composite_primary_keys/relation/query_methods.rb +41 -41
- data/lib/composite_primary_keys/sanitization.rb +7 -5
- data/lib/composite_primary_keys/validations/uniqueness.rb +20 -16
- data/lib/composite_primary_keys/version.rb +1 -1
- data/tasks/databases/oracle.rake +27 -25
- data/tasks/databases/oracle_enhanced.rake +27 -0
- data/test/connections/databases.ci.yml +15 -15
- data/test/connections/native_oracle/connection.rb +11 -11
- data/test/connections/native_oracle_enhanced/connection.rb +16 -16
- data/test/fixtures/comment.rb +7 -7
- data/test/fixtures/db_definitions/db2-create-tables.sql +126 -126
- data/test/fixtures/db_definitions/db2-drop-tables.sql +18 -18
- data/test/fixtures/db_definitions/oracle.drop.sql +48 -45
- data/test/fixtures/db_definitions/oracle.sql +236 -223
- data/test/fixtures/dorm.rb +2 -2
- data/test/fixtures/membership.rb +6 -6
- data/test/fixtures/membership_statuses.yml +16 -16
- data/test/fixtures/memberships.yml +10 -10
- data/test/fixtures/product_tariffs.yml +14 -14
- data/test/fixtures/reference_code.rb +7 -7
- data/test/fixtures/restaurants_suburb.rb +2 -2
- data/test/fixtures/suburb.rb +5 -5
- data/test/fixtures/topic.rb +5 -5
- data/test/fixtures/topic_source.rb +6 -6
- data/test/fixtures/topic_sources.yml +3 -3
- data/test/fixtures/topics.yml +8 -8
- data/test/fixtures/users.yml +10 -10
- data/test/test_attribute_methods.rb +63 -63
- data/test/test_calculations.rb +42 -37
- data/test/test_callbacks.rb +99 -99
- data/test/test_delete.rb +28 -21
- data/test/test_delete_all.rb +5 -4
- data/test/test_dumpable.rb +15 -15
- data/test/test_nested_attributes.rb +124 -124
- data/test/test_optimistic.rb +18 -18
- data/test/test_polymorphic.rb +1 -1
- data/test/test_predicates.rb +40 -40
- data/test/test_santiago.rb +23 -23
- data/test/test_suite.rb +34 -34
- data/test/test_touch.rb +23 -23
- data/test/test_update.rb +71 -71
- metadata +9 -8
- data/lib/composite_primary_keys/model_schema.rb +0 -15
@@ -1,11 +1,11 @@
|
|
1
|
-
print "Using native Oracle\n"
|
2
|
-
|
3
|
-
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
|
4
|
-
|
5
|
-
def connection_string
|
6
|
-
"#{SPEC['username']}/#{SPEC['password']}
|
7
|
-
end
|
8
|
-
|
9
|
-
# Adapter config setup in locals/database_connections.rb
|
10
|
-
SPEC = CompositePrimaryKeys::ConnectionSpec['oracle']
|
11
|
-
ActiveRecord::Base.establish_connection(SPEC)
|
1
|
+
print "Using native Oracle\n"
|
2
|
+
|
3
|
+
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
|
4
|
+
|
5
|
+
def connection_string
|
6
|
+
"#{SPEC['username']}/#{SPEC['password']}@//#{SPEC['host']}:#{SPEC['port']}/#{SPEC['database']}"
|
7
|
+
end
|
8
|
+
|
9
|
+
# Adapter config setup in locals/database_connections.rb
|
10
|
+
SPEC = CompositePrimaryKeys::ConnectionSpec['oracle']
|
11
|
+
ActiveRecord::Base.establish_connection(SPEC)
|
@@ -1,16 +1,16 @@
|
|
1
|
-
print "Using native Oracle Enhanced\n"
|
2
|
-
|
3
|
-
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
|
4
|
-
|
5
|
-
def connection_string
|
6
|
-
"#{SPEC['username']}/#{SPEC['password']}
|
7
|
-
end
|
8
|
-
|
9
|
-
# Adapter config setup in locals/database_connections.rb
|
10
|
-
SPEC = CompositePrimaryKeys::ConnectionSpec[:
|
11
|
-
ActiveRecord::Base.establish_connection(SPEC)
|
12
|
-
|
13
|
-
# Change default options for Oracle Enhanced adapter
|
14
|
-
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_dates_by_column_name = true
|
15
|
-
# Change NLS_DATE_FORMAT to non-default format to verify that all tests should pass
|
16
|
-
ActiveRecord::Base.connection.execute %q{alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'}
|
1
|
+
print "Using native Oracle Enhanced\n"
|
2
|
+
|
3
|
+
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
|
4
|
+
|
5
|
+
def connection_string
|
6
|
+
"#{SPEC['username']}/#{SPEC['password']}@//#{SPEC['host']}:#{SPEC['port']}/#{SPEC['database']}"
|
7
|
+
end
|
8
|
+
|
9
|
+
# Adapter config setup in locals/database_connections.rb
|
10
|
+
SPEC = CompositePrimaryKeys::ConnectionSpec[:oracle_enhanced]
|
11
|
+
ActiveRecord::Base.establish_connection(SPEC)
|
12
|
+
|
13
|
+
# Change default options for Oracle Enhanced adapter
|
14
|
+
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_dates_by_column_name = true
|
15
|
+
# Change NLS_DATE_FORMAT to non-default format to verify that all tests should pass
|
16
|
+
ActiveRecord::Base.connection.execute %q{alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'}
|
data/test/fixtures/comment.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
class Comment < ActiveRecord::Base
|
2
|
-
belongs_to :person, :polymorphic => true
|
3
|
-
belongs_to :hack
|
4
|
-
|
5
|
-
enum :shown => [ :true, :false ]
|
6
|
-
end
|
7
|
-
|
1
|
+
class Comment < ActiveRecord::Base
|
2
|
+
belongs_to :person, :polymorphic => true
|
3
|
+
belongs_to :hack
|
4
|
+
|
5
|
+
enum :shown => [ :true, :false ]
|
6
|
+
end
|
7
|
+
|
@@ -1,126 +1,126 @@
|
|
1
|
-
CREATE TABLE topics (
|
2
|
-
id integer NOT NULL,
|
3
|
-
name varchar(50) default NULL,
|
4
|
-
feed_size integer default NULL,
|
5
|
-
PRIMARY KEY (id)
|
6
|
-
);
|
7
|
-
|
8
|
-
CREATE TABLE topic_sources (
|
9
|
-
topic_id integer NOT NULL,
|
10
|
-
platform varchar(50) NOT NULL,
|
11
|
-
keywords varchar(50) default NULL,
|
12
|
-
PRIMARY KEY (topic_id,platform)
|
13
|
-
);
|
14
|
-
|
15
|
-
CREATE TABLE reference_types (
|
16
|
-
reference_type_id integer NOT NULL generated by default as identity (start with 100, increment by 1, no cache),
|
17
|
-
type_label varchar(50) default NULL,
|
18
|
-
abbreviation varchar(50) default NULL,
|
19
|
-
description varchar(50) default NULL,
|
20
|
-
PRIMARY KEY (reference_type_id)
|
21
|
-
);
|
22
|
-
|
23
|
-
CREATE TABLE reference_codes (
|
24
|
-
reference_type_id integer,
|
25
|
-
reference_code integer NOT NULL,
|
26
|
-
code_label varchar(50) default NULL,
|
27
|
-
abbreviation varchar(50) default NULL,
|
28
|
-
description varchar(50) default NULL,
|
29
|
-
PRIMARY KEY (reference_type_id,reference_code)
|
30
|
-
);
|
31
|
-
|
32
|
-
CREATE TABLE products (
|
33
|
-
id integer NOT NULL,
|
34
|
-
name varchar(50) default NULL,
|
35
|
-
PRIMARY KEY (id)
|
36
|
-
);
|
37
|
-
|
38
|
-
CREATE TABLE tariffs (
|
39
|
-
tariff_id integer NOT NULL,
|
40
|
-
start_date date NOT NULL,
|
41
|
-
amount integer default NULL,
|
42
|
-
PRIMARY KEY (tariff_id,start_date)
|
43
|
-
);
|
44
|
-
|
45
|
-
CREATE TABLE product_tariffs (
|
46
|
-
product_id integer NOT NULL,
|
47
|
-
tariff_id integer NOT NULL,
|
48
|
-
tariff_start_date date NOT NULL,
|
49
|
-
PRIMARY KEY (product_id,tariff_id,tariff_start_date)
|
50
|
-
);
|
51
|
-
|
52
|
-
CREATE TABLE suburbs (
|
53
|
-
city_id integer NOT NULL,
|
54
|
-
suburb_id integer NOT NULL,
|
55
|
-
name varchar(50) NOT NULL,
|
56
|
-
PRIMARY KEY (city_id,suburb_id)
|
57
|
-
);
|
58
|
-
|
59
|
-
CREATE TABLE streets (
|
60
|
-
id integer NOT NULL ,
|
61
|
-
city_id integer NOT NULL,
|
62
|
-
suburb_id integer NOT NULL,
|
63
|
-
name varchar(50) NOT NULL,
|
64
|
-
PRIMARY KEY (id)
|
65
|
-
);
|
66
|
-
|
67
|
-
CREATE TABLE users (
|
68
|
-
id integer NOT NULL ,
|
69
|
-
name varchar(50) NOT NULL,
|
70
|
-
PRIMARY KEY (id)
|
71
|
-
);
|
72
|
-
|
73
|
-
CREATE TABLE articles (
|
74
|
-
id integer NOT NULL ,
|
75
|
-
name varchar(50) NOT NULL,
|
76
|
-
PRIMARY KEY (id)
|
77
|
-
);
|
78
|
-
|
79
|
-
CREATE TABLE readings (
|
80
|
-
id integer NOT NULL ,
|
81
|
-
user_id integer NOT NULL,
|
82
|
-
article_id integer NOT NULL,
|
83
|
-
rating integer NOT NULL,
|
84
|
-
PRIMARY KEY (id)
|
85
|
-
);
|
86
|
-
|
87
|
-
CREATE TABLE groups (
|
88
|
-
id integer NOT NULL ,
|
89
|
-
name varchar(50) NOT NULL,
|
90
|
-
PRIMARY KEY (id)
|
91
|
-
);
|
92
|
-
|
93
|
-
CREATE TABLE memberships (
|
94
|
-
user_id integer NOT NULL,
|
95
|
-
group_id integer NOT NULL,
|
96
|
-
PRIMARY KEY (user_id,group_id)
|
97
|
-
);
|
98
|
-
|
99
|
-
CREATE TABLE membership_statuses (
|
100
|
-
id integer NOT NULL ,
|
101
|
-
user_id integer NOT NULL,
|
102
|
-
group_id integer NOT NULL,
|
103
|
-
status varchar(50) NOT NULL,
|
104
|
-
PRIMARY KEY (id)
|
105
|
-
);
|
106
|
-
|
107
|
-
create table restaurants (
|
108
|
-
franchise_id integer not null,
|
109
|
-
store_id integer not null,
|
110
|
-
name varchar(100),
|
111
|
-
lock_version integer default 0,
|
112
|
-
primary key (franchise_id, store_id)
|
113
|
-
);
|
114
|
-
|
115
|
-
create table restaurants_suburbs (
|
116
|
-
franchise_id integer not null,
|
117
|
-
store_id integer not null,
|
118
|
-
city_id integer not null,
|
119
|
-
suburb_id integer not null
|
120
|
-
);
|
121
|
-
|
122
|
-
create table products_restaurants (
|
123
|
-
product_id integer not null,
|
124
|
-
franchise_id integer not null,
|
125
|
-
store_id integer not null
|
126
|
-
);
|
1
|
+
CREATE TABLE topics (
|
2
|
+
id integer NOT NULL,
|
3
|
+
name varchar(50) default NULL,
|
4
|
+
feed_size integer default NULL,
|
5
|
+
PRIMARY KEY (id)
|
6
|
+
);
|
7
|
+
|
8
|
+
CREATE TABLE topic_sources (
|
9
|
+
topic_id integer NOT NULL,
|
10
|
+
platform varchar(50) NOT NULL,
|
11
|
+
keywords varchar(50) default NULL,
|
12
|
+
PRIMARY KEY (topic_id,platform)
|
13
|
+
);
|
14
|
+
|
15
|
+
CREATE TABLE reference_types (
|
16
|
+
reference_type_id integer NOT NULL generated by default as identity (start with 100, increment by 1, no cache),
|
17
|
+
type_label varchar(50) default NULL,
|
18
|
+
abbreviation varchar(50) default NULL,
|
19
|
+
description varchar(50) default NULL,
|
20
|
+
PRIMARY KEY (reference_type_id)
|
21
|
+
);
|
22
|
+
|
23
|
+
CREATE TABLE reference_codes (
|
24
|
+
reference_type_id integer,
|
25
|
+
reference_code integer NOT NULL,
|
26
|
+
code_label varchar(50) default NULL,
|
27
|
+
abbreviation varchar(50) default NULL,
|
28
|
+
description varchar(50) default NULL,
|
29
|
+
PRIMARY KEY (reference_type_id,reference_code)
|
30
|
+
);
|
31
|
+
|
32
|
+
CREATE TABLE products (
|
33
|
+
id integer NOT NULL,
|
34
|
+
name varchar(50) default NULL,
|
35
|
+
PRIMARY KEY (id)
|
36
|
+
);
|
37
|
+
|
38
|
+
CREATE TABLE tariffs (
|
39
|
+
tariff_id integer NOT NULL,
|
40
|
+
start_date date NOT NULL,
|
41
|
+
amount integer default NULL,
|
42
|
+
PRIMARY KEY (tariff_id,start_date)
|
43
|
+
);
|
44
|
+
|
45
|
+
CREATE TABLE product_tariffs (
|
46
|
+
product_id integer NOT NULL,
|
47
|
+
tariff_id integer NOT NULL,
|
48
|
+
tariff_start_date date NOT NULL,
|
49
|
+
PRIMARY KEY (product_id,tariff_id,tariff_start_date)
|
50
|
+
);
|
51
|
+
|
52
|
+
CREATE TABLE suburbs (
|
53
|
+
city_id integer NOT NULL,
|
54
|
+
suburb_id integer NOT NULL,
|
55
|
+
name varchar(50) NOT NULL,
|
56
|
+
PRIMARY KEY (city_id,suburb_id)
|
57
|
+
);
|
58
|
+
|
59
|
+
CREATE TABLE streets (
|
60
|
+
id integer NOT NULL ,
|
61
|
+
city_id integer NOT NULL,
|
62
|
+
suburb_id integer NOT NULL,
|
63
|
+
name varchar(50) NOT NULL,
|
64
|
+
PRIMARY KEY (id)
|
65
|
+
);
|
66
|
+
|
67
|
+
CREATE TABLE users (
|
68
|
+
id integer NOT NULL ,
|
69
|
+
name varchar(50) NOT NULL,
|
70
|
+
PRIMARY KEY (id)
|
71
|
+
);
|
72
|
+
|
73
|
+
CREATE TABLE articles (
|
74
|
+
id integer NOT NULL ,
|
75
|
+
name varchar(50) NOT NULL,
|
76
|
+
PRIMARY KEY (id)
|
77
|
+
);
|
78
|
+
|
79
|
+
CREATE TABLE readings (
|
80
|
+
id integer NOT NULL ,
|
81
|
+
user_id integer NOT NULL,
|
82
|
+
article_id integer NOT NULL,
|
83
|
+
rating integer NOT NULL,
|
84
|
+
PRIMARY KEY (id)
|
85
|
+
);
|
86
|
+
|
87
|
+
CREATE TABLE groups (
|
88
|
+
id integer NOT NULL ,
|
89
|
+
name varchar(50) NOT NULL,
|
90
|
+
PRIMARY KEY (id)
|
91
|
+
);
|
92
|
+
|
93
|
+
CREATE TABLE memberships (
|
94
|
+
user_id integer NOT NULL,
|
95
|
+
group_id integer NOT NULL,
|
96
|
+
PRIMARY KEY (user_id,group_id)
|
97
|
+
);
|
98
|
+
|
99
|
+
CREATE TABLE membership_statuses (
|
100
|
+
id integer NOT NULL ,
|
101
|
+
user_id integer NOT NULL,
|
102
|
+
group_id integer NOT NULL,
|
103
|
+
status varchar(50) NOT NULL,
|
104
|
+
PRIMARY KEY (id)
|
105
|
+
);
|
106
|
+
|
107
|
+
create table restaurants (
|
108
|
+
franchise_id integer not null,
|
109
|
+
store_id integer not null,
|
110
|
+
name varchar(100),
|
111
|
+
lock_version integer default 0,
|
112
|
+
primary key (franchise_id, store_id)
|
113
|
+
);
|
114
|
+
|
115
|
+
create table restaurants_suburbs (
|
116
|
+
franchise_id integer not null,
|
117
|
+
store_id integer not null,
|
118
|
+
city_id integer not null,
|
119
|
+
suburb_id integer not null
|
120
|
+
);
|
121
|
+
|
122
|
+
create table products_restaurants (
|
123
|
+
product_id integer not null,
|
124
|
+
franchise_id integer not null,
|
125
|
+
store_id integer not null
|
126
|
+
);
|
@@ -1,19 +1,19 @@
|
|
1
|
-
drop table MEMBERSHIPS;
|
2
|
-
drop table REFERENCE_CODES;
|
3
|
-
drop table TARIFFS;
|
4
|
-
drop table ARTICLES;
|
5
|
-
drop table GROUPS;
|
6
|
-
drop table MEMBERSHIP_STATUSES;
|
7
|
-
drop table READINGS;
|
8
|
-
drop table REFERENCE_TYPES;
|
9
|
-
drop table STREETS;
|
10
|
-
drop table PRODUCTS;
|
11
|
-
drop table USERS;
|
12
|
-
drop table SUBURBS;
|
13
|
-
drop table PRODUCT_TARIFFS;
|
14
|
-
drop table KITCHEN_SINK;
|
15
|
-
drop table RESTAURANTS;
|
16
|
-
drop table RESTAURANTS_SUBURBS;
|
17
|
-
drop table PRODUCTS_RESTAURANTS;
|
18
|
-
drop table TOPICS;
|
1
|
+
drop table MEMBERSHIPS;
|
2
|
+
drop table REFERENCE_CODES;
|
3
|
+
drop table TARIFFS;
|
4
|
+
drop table ARTICLES;
|
5
|
+
drop table GROUPS;
|
6
|
+
drop table MEMBERSHIP_STATUSES;
|
7
|
+
drop table READINGS;
|
8
|
+
drop table REFERENCE_TYPES;
|
9
|
+
drop table STREETS;
|
10
|
+
drop table PRODUCTS;
|
11
|
+
drop table USERS;
|
12
|
+
drop table SUBURBS;
|
13
|
+
drop table PRODUCT_TARIFFS;
|
14
|
+
drop table KITCHEN_SINK;
|
15
|
+
drop table RESTAURANTS;
|
16
|
+
drop table RESTAURANTS_SUBURBS;
|
17
|
+
drop table PRODUCTS_RESTAURANTS;
|
18
|
+
drop table TOPICS;
|
19
19
|
drop table TOPIC_SOURCES;
|
@@ -1,45 +1,48 @@
|
|
1
|
-
drop table topics;
|
2
|
-
drop sequence topics_seq;
|
3
|
-
drop table topic_sources;
|
4
|
-
drop table reference_types;
|
5
|
-
drop sequence reference_types_seq;
|
6
|
-
drop table reference_codes;
|
7
|
-
drop table products;
|
8
|
-
drop sequence products_seq;
|
9
|
-
drop table tariffs;
|
10
|
-
drop table product_tariffs;
|
11
|
-
drop table suburbs;
|
12
|
-
drop table streets;
|
13
|
-
drop sequence streets_seq;
|
14
|
-
drop table users;
|
15
|
-
drop sequence users_seq;
|
16
|
-
drop table articles;
|
17
|
-
drop sequence articles_seq;
|
18
|
-
drop table readings;
|
19
|
-
drop sequence readings_seq;
|
20
|
-
drop table groups;
|
21
|
-
drop sequence groups_seq;
|
22
|
-
drop table memberships;
|
23
|
-
drop table membership_statuses;
|
24
|
-
drop sequence membership_statuses_seq;
|
25
|
-
drop table departments;
|
26
|
-
drop table
|
27
|
-
drop sequence
|
28
|
-
drop table
|
29
|
-
drop sequence
|
30
|
-
drop table
|
31
|
-
drop sequence
|
32
|
-
drop table
|
33
|
-
drop
|
34
|
-
drop table
|
35
|
-
drop
|
36
|
-
drop table
|
37
|
-
drop
|
38
|
-
drop
|
39
|
-
drop table
|
40
|
-
drop
|
41
|
-
drop table
|
42
|
-
drop
|
43
|
-
drop table
|
44
|
-
drop
|
45
|
-
drop table
|
1
|
+
drop table topics;
|
2
|
+
drop sequence topics_seq;
|
3
|
+
drop table topic_sources;
|
4
|
+
drop table reference_types;
|
5
|
+
drop sequence reference_types_seq;
|
6
|
+
drop table reference_codes;
|
7
|
+
drop table products;
|
8
|
+
drop sequence products_seq;
|
9
|
+
drop table tariffs;
|
10
|
+
drop table product_tariffs;
|
11
|
+
drop table suburbs;
|
12
|
+
drop table streets;
|
13
|
+
drop sequence streets_seq;
|
14
|
+
drop table users;
|
15
|
+
drop sequence users_seq;
|
16
|
+
drop table articles;
|
17
|
+
drop sequence articles_seq;
|
18
|
+
drop table readings;
|
19
|
+
drop sequence readings_seq;
|
20
|
+
drop table groups;
|
21
|
+
drop sequence groups_seq;
|
22
|
+
drop table memberships;
|
23
|
+
drop table membership_statuses;
|
24
|
+
drop sequence membership_statuses_seq;
|
25
|
+
drop table departments;
|
26
|
+
drop table salaries;
|
27
|
+
drop sequence salaries_seq;
|
28
|
+
drop table employees;
|
29
|
+
drop sequence employees_seq;
|
30
|
+
drop table comments;
|
31
|
+
drop sequence comments_seq;
|
32
|
+
drop table hacks;
|
33
|
+
drop sequence hacks_seq;
|
34
|
+
drop table restaurants;
|
35
|
+
drop table restaurants_suburbs;
|
36
|
+
drop table dorms;
|
37
|
+
drop sequence dorms_seq;
|
38
|
+
drop table rooms;
|
39
|
+
drop table room_attributes;
|
40
|
+
drop sequence room_attributes_seq;
|
41
|
+
drop table room_attribute_assignments;
|
42
|
+
drop table room_assignments;
|
43
|
+
drop table students;
|
44
|
+
drop sequence students_seq;
|
45
|
+
drop table seats;
|
46
|
+
drop table capitols;
|
47
|
+
drop table products_restaurants;
|
48
|
+
drop table employees_groups;
|