Skip to content

Commit 52e21e7

Browse files
Merge pull request #22 from rustprooflabs/int4-to-int8
Change SERIAL to BIGINT w/ IDENTITIY
2 parents b7e9d9a + 2f4eb99 commit 52e21e7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/sql/create_extension_tables_all.sql

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
CREATE TABLE dd.meta_schema
22
(
3-
meta_schema_id SERIAL NOT NULL,
3+
meta_schema_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
44
s_name name NOT NULL,
55
data_source TEXT NULL,
6-
sensitive BOOLEAN NOT NULL,
6+
sensitive BOOLEAN NOT NULL DEFAULT False,
77
CONSTRAINT PK_dd_meta_schema_id PRIMARY KEY (meta_schema_id),
88
CONSTRAINT UQ_dd_meta_schema_name UNIQUE (s_name)
99
);
1010

1111

1212
CREATE TABLE dd.meta_table
1313
(
14-
meta_table_id SERIAL NOT NULL,
14+
meta_table_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
1515
s_name name NOT NULL,
1616
t_name name NOT NULL,
1717
data_source TEXT NULL,
@@ -23,7 +23,7 @@ CREATE TABLE dd.meta_table
2323

2424
CREATE TABLE dd.meta_column
2525
(
26-
meta_column_id SERIAL NOT NULL,
26+
meta_column_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
2727
s_name name NOT NULL,
2828
t_name name NOT NULL,
2929
c_name name NOT NULL,
@@ -57,7 +57,4 @@ COMMENT ON COLUMN dd.meta_schema.sensitive IS 'Manually updated indicator. Does
5757
COMMENT ON COLUMN dd.meta_table.sensitive IS 'Manually updated indicator. Does the table contain store sensitive data?';
5858
COMMENT ON COLUMN dd.meta_column.sensitive IS 'Manually updated indicator. Does the column contain store sensitive data?';
5959

60-
----------------------
61-
-- Version 0.4.0 -- This is duplicated in sql/pgdd--0.3.1--0.4.0.sql
62-
----------------------
63-
ALTER TABLE dd.meta_schema ALTER COLUMN sensitive SET DEFAULT False;
60+

0 commit comments

Comments
 (0)