Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to generated always as identity rather than serial #79

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions work-dir/initdb.d/010-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
begin;

create table cluster (
id serial primary key,
id int generated always as identity primary key,
name text not null,
unique (name),
last_updated timestamp default current_timestamp not null,
created_at timestamp default current_timestamp not null
);

create table broker (
id serial primary key,
id int generated always as identity primary key,
cluster integer references cluster(id) not null,
node integer not null,
rack text,
Expand All @@ -36,7 +36,7 @@ create table broker (
);

create table listener (
id serial primary key,
id int generated always as identity primary key,
broker integer references broker(id) not null,
name text not null,
host text not null,
Expand Down Expand Up @@ -103,7 +103,7 @@ create type "Compression" as enum (
);

create table record (
id bigserial primary key not null,
id bigint generated always as identity primary key,
topic uuid references topic(id),
partition integer,
producer_id bigint,
Expand Down