Fix the syntax differences between HSQL and Postgres
This commit is contained in:
@ -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,
|
||||||
|
@ -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)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user