Skip to content

Commit

Permalink
Merge pull request #66 from Digitalone1/new-versioning-system-2
Browse files Browse the repository at this point in the history
Prepare to migrate to the new versioning system - part 2
  • Loading branch information
confused-Techie authored Feb 1, 2023
2 parents f5cfea8 + 5080b47 commit 9128cfd
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 244 deletions.
1 change: 1 addition & 0 deletions scripts/database/create_versions_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CREATE TABLE versions (
created TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
meta JSONB,
deleted BOOLEAN NOT NULL DEFAULT FALSE,
-- generated columns
semver_v1 INTEGER GENERATED ALWAYS AS
(CAST ((regexp_match(semver, '^(\d+)\.(\d+)\.(\d+)'))[1] AS INTEGER)) STORED,
Expand Down
Loading

0 comments on commit 9128cfd

Please sign in to comment.