Fix the syntax differences between HSQL and Postgres

This commit is contained in:
Nanne Baars
2020-04-26 20:09:15 +02:00
committed by Nanne Baars
parent 4831338649
commit 54610868fe
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
CREATE SCHEMA CONTAINER; -- This statement is here the schema is always created even if we use Flyway directly like in test-cases
-- For the normal WebGoat server there is a bean which already provided the schema (and creates it see DatabaseInitialization)
CREATE SCHEMA IF NOT EXISTS CONTAINER;
CREATE SEQUENCE CONTAINER.HIBERNATE_SEQUENCE AS INTEGER START WITH 1; CREATE SEQUENCE CONTAINER.HIBERNATE_SEQUENCE;
CREATE TABLE CONTAINER.ASSIGNMENT ( CREATE TABLE CONTAINER.ASSIGNMENT (
ID BIGINT NOT NULL PRIMARY KEY, ID BIGINT NOT NULL PRIMARY KEY,

View File

@ -14,7 +14,7 @@ INSERT INTO employees VALUES ('34477','Abraham ', 'Holman', 'Development', 5000
INSERT INTO employees VALUES ('37648','John', 'Smith', 'Marketing', 64350, '3SL99A'); INSERT INTO employees VALUES ('37648','John', 'Smith', 'Marketing', 64350, '3SL99A');
CREATE TABLE access_log ( CREATE TABLE access_log (
id int not null primary key identity, id int not null primary key,
time varchar(50), time varchar(50),
action varchar(200) action varchar(200)
); );