Skip to content

Commit

Permalink
Merge pull request #22 from rustprooflabs/int4-to-int8
Browse files Browse the repository at this point in the history
Change SERIAL to BIGINT w/ IDENTITIY
  • Loading branch information
rustprooflabs authored Oct 2, 2021
2 parents b7e9d9a + 2f4eb99 commit 52e21e7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/sql/create_extension_tables_all.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
CREATE TABLE dd.meta_schema
(
meta_schema_id SERIAL NOT NULL,
meta_schema_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
s_name name NOT NULL,
data_source TEXT NULL,
sensitive BOOLEAN NOT NULL,
sensitive BOOLEAN NOT NULL DEFAULT False,
CONSTRAINT PK_dd_meta_schema_id PRIMARY KEY (meta_schema_id),
CONSTRAINT UQ_dd_meta_schema_name UNIQUE (s_name)
);


CREATE TABLE dd.meta_table
(
meta_table_id SERIAL NOT NULL,
meta_table_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
s_name name NOT NULL,
t_name name NOT NULL,
data_source TEXT NULL,
Expand All @@ -23,7 +23,7 @@ CREATE TABLE dd.meta_table

CREATE TABLE dd.meta_column
(
meta_column_id SERIAL NOT NULL,
meta_column_id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY,
s_name name NOT NULL,
t_name name NOT NULL,
c_name name NOT NULL,
Expand Down Expand Up @@ -57,7 +57,4 @@ COMMENT ON COLUMN dd.meta_schema.sensitive IS 'Manually updated indicator. Does
COMMENT ON COLUMN dd.meta_table.sensitive IS 'Manually updated indicator. Does the table contain store sensitive data?';
COMMENT ON COLUMN dd.meta_column.sensitive IS 'Manually updated indicator. Does the column contain store sensitive data?';

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

0 comments on commit 52e21e7

Please sign in to comment.