Feat v0.3.8 distribution (#21)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #21.
This commit is contained in:
@@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS packages (
|
||||
schema_version INTEGER NOT NULL DEFAULT 0,
|
||||
package_settings JSONB NOT NULL DEFAULT '{}',
|
||||
source TEXT NOT NULL DEFAULT 'core'
|
||||
CHECK (source IN ('core', 'builtin', 'extension', 'registry')),
|
||||
CHECK (source IN ('core', 'builtin', 'extension', 'registry', 'bundled')),
|
||||
installed_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
-- 012_bundled_source.sql — v0.3.8
|
||||
-- Adds 'bundled' to the packages.source CHECK constraint for auto-installed packages.
|
||||
|
||||
ALTER TABLE packages DROP CONSTRAINT IF EXISTS packages_source_check;
|
||||
ALTER TABLE packages ADD CONSTRAINT packages_source_check
|
||||
CHECK (source IN ('core', 'builtin', 'extension', 'registry', 'bundled'));
|
||||
Reference in New Issue
Block a user