mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
This changes the license text for SQL files to be identical with the license text for C files.
19 lines
798 B
Plaintext
19 lines
798 B
Plaintext
-- This file and its contents are licensed under the Apache License 2.0.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-APACHE for a copy of the license.
|
|
-- Test that we can verify constraints on regular tables
|
|
CREATE TABLE test_hyper_pk(time TIMESTAMPTZ PRIMARY KEY, temp FLOAT, device INT);
|
|
CREATE TABLE test_pk(device INT PRIMARY KEY);
|
|
CREATE TABLE test_like(LIKE test_pk);
|
|
SELECT create_hypertable('test_hyper_pk', 'time');
|
|
create_hypertable
|
|
----------------------------
|
|
(1,public,test_hyper_pk,t)
|
|
(1 row)
|
|
|
|
\set ON_ERROR_STOP 0
|
|
-- Foreign key constraints that reference hypertables are currently unsupported
|
|
CREATE TABLE test_fk(time TIMESTAMPTZ REFERENCES test_hyper_pk(time));
|
|
ERROR: foreign keys to hypertables are not supported
|
|
\set ON_ERROR_STOP 1
|