mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
20 lines
476 B
MySQL
20 lines
476 B
MySQL
|
|
||
|
|
||
|
|
||
|
CREATE DOMAIN public.colordomain
|
||
|
AS text
|
||
|
COLLATE pg_catalog."default"
|
||
|
CONSTRAINT domainconstraint CHECK (VALUE = ANY (ARRAY['red'::text, 'green'::text, 'blue'::text]));
|
||
|
|
||
|
CREATE DOMAIN qgis_test.colordomain
|
||
|
AS text
|
||
|
COLLATE pg_catalog."default"
|
||
|
CONSTRAINT domainconstraint CHECK (VALUE = ANY (ARRAY['yellow'::text, 'cyan'::text, 'magenta'::text]));
|
||
|
|
||
|
CREATE TABLE qgis_test.colors
|
||
|
(
|
||
|
id SERIAL NOT NULL,
|
||
|
color_public colordomain,
|
||
|
color_qgis qgis_test.colordomain
|
||
|
)
|