Browse Source

Update id type in schema

David Ginzberg 7 years ago
parent
commit
29da9e48b8
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/main/resources/schema-h2.sql

+ 4
- 3
src/main/resources/schema-h2.sql View File

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