Pārlūkot izejas kodu

Fix schema for lab

David Ginzberg 7 gadus atpakaļ
vecāks
revīzija
b307a434b6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3
    3
      src/main/resources/schema-h2.sql

+ 3
- 3
src/main/resources/schema-h2.sql Parādīt failu

2
 
2
 
3
 CREATE TABLE PERSON (
3
 CREATE TABLE PERSON (
4
 ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
4
 ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
5
-NAME VARCHAR2(255) DEFAULT NULL,
6
-AGE NUMBER(10, 0) DEFAULT NULL,
5
+FIRST_NAME VARCHAR2(255) DEFAULT NULL,
6
+LAST_NAME VARCHAR2(255) DEFAULT NULL,
7
 PRIMARY KEY (ID));
7
 PRIMARY KEY (ID));
8
 
8
 
9
 DROP SEQUENCE hibernate_sequence;
9
 DROP SEQUENCE hibernate_sequence;
10
 
10
 
11
-CREATE SEQUENCE hibernate_sequence;
11
+CREATE SEQUENCE hibernate_sequence;