|
@@ -1,7 +1,7 @@
|
1
|
1
|
DROP TABLE PERSON;
|
2
|
2
|
|
3
|
3
|
CREATE TABLE PERSON (
|
4
|
|
- ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
|
|
4
|
+ ID INT NOT NULL AUTO_INCREMENT,
|
5
|
5
|
FIRST_NAME VARCHAR2(255) NOT NULL DEFAULT '',
|
6
|
6
|
LAST_NAME VARCHAR2(255) NOT NULL DEFAULT '',
|
7
|
7
|
MOBILE VARCHAR2(20) NOT NULL DEFAULT '',
|
|
@@ -11,7 +11,7 @@ CREATE TABLE PERSON (
|
11
|
11
|
DROP TABLE HOME;
|
12
|
12
|
|
13
|
13
|
CREATE TABLE HOME (
|
14
|
|
- ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
|
|
14
|
+ ID INT NOT NULL AUTO_INCREMENT,
|
15
|
15
|
ADDRESS VARCHAR2(255) not null default '',
|
16
|
16
|
HOMENUMBER varchar2(255) NOT NULL DEFAULT '',
|
17
|
17
|
PRIMARY KEY (ID)
|
|
@@ -21,13 +21,14 @@ CREATE TABLE HOME (
|
21
|
21
|
DROP TABLE CAR;
|
22
|
22
|
|
23
|
23
|
CREATE TABLE CAR (
|
24
|
|
- ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
|
|
24
|
+ ID INT NOT NULL AUTO_INCREMENT,
|
25
|
25
|
MAKE VARCHAR2(255) not null default '',
|
26
|
26
|
MODEL varchar2(255) NOT NULL DEFAULT '',
|
27
|
27
|
YEAR VARCHAR2(5) NOT NULL DEFAULT '01907',
|
28
|
28
|
PRIMARY KEY (ID)
|
29
|
29
|
);
|
30
|
30
|
|
|
31
|
+
|
31
|
32
|
DROP SEQUENCE hibernate_sequence;
|
32
|
33
|
|
33
|
34
|
CREATE SEQUENCE hibernate_sequence;
|