schema: fix PostgreSQL data type

This commit is contained in:
Thomas Gelf 2017-07-14 13:11:43 +02:00
parent 7467861fca
commit aea69c42bc
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
ALTER TABLE director_datalist_entry ALTER TABLE director_datalist_entry
ADD COLUMN allowed_roles varying(255) DEFAULT NULL; ADD COLUMN allowed_roles character varying(255) DEFAULT NULL;
INSERT INTO director_schema_migration INSERT INTO director_schema_migration
(schema_version, migration_time) (schema_version, migration_time)

View File

@ -170,7 +170,7 @@ CREATE TABLE director_datalist_entry (
entry_name character varying(255) NOT NULL, entry_name character varying(255) NOT NULL,
entry_value text DEFAULT NULL, entry_value text DEFAULT NULL,
format enum_property_format, format enum_property_format,
allowed_roles varying(255) DEFAULT NULL, allowed_roles character varying(255) DEFAULT NULL,
PRIMARY KEY (list_id, entry_name), PRIMARY KEY (list_id, entry_name),
CONSTRAINT director_datalist_entry_datalist CONSTRAINT director_datalist_entry_datalist
FOREIGN KEY (list_id) FOREIGN KEY (list_id)