From a45ef5c24862632977c9abaf35f814f7c367b911 Mon Sep 17 00:00:00 2001 From: CrazyBolillo Date: Mon, 29 Jul 2024 22:22:42 -0600 Subject: [PATCH] Revert "feat: update cdr schema" This reverts commit e6924c0904cc759e21402332d2d3e4647a87f47f. Any changes to the Asterisk schema will be handled as a migration, this is the only sane way going forward considering that eryth itself may need to continually update the schema whenever new features are added. --- internal/sqlc/models.go | 1 - schema.sql | 1 - 2 files changed, 2 deletions(-) diff --git a/internal/sqlc/models.go b/internal/sqlc/models.go index 15cb29d..e0b1aae 100644 --- a/internal/sqlc/models.go +++ b/internal/sqlc/models.go @@ -1565,7 +1565,6 @@ type AlembicVersion struct { } type Cdr struct { - ID int64 `json:"id"` Accountcode pgtype.Text `json:"accountcode"` Src pgtype.Text `json:"src"` Dst pgtype.Text `json:"dst"` diff --git a/schema.sql b/schema.sql index d603e54..4cafb98 100644 --- a/schema.sql +++ b/schema.sql @@ -272,7 +272,6 @@ CREATE TABLE public.alembic_version ( ); CREATE TABLE public.cdr ( - id BIGSERIAL PRIMARY KEY, accountcode character varying(80), src character varying(80), dst character varying(80),