-- The GPS position of a company's office, as decimal degrees with six -- decimals ("18.796500, 99.008200"); empty when not recorded. Photos of the -- office are documents of the kind office-photo (0003). ALTER TABLE companies ADD COLUMN office_gps TEXT NOT NULL DEFAULT '' CONSTRAINT companies_office_gps_check CHECK ( office_gps = '' OR office_gps ~ '^-?[0-9]{1,2}\.[0-9]{6}, -?[0-9]{1,3}\.[0-9]{6}$' );