From 047fd068c4ade1c6f9a7ccc1147fdda3caba25fd Mon Sep 17 00:00:00 2001 From: Anders Gustafsson <34234789+anders-photowall@users.noreply.github.com> Date: Wed, 20 Aug 2025 13:41:47 +0200 Subject: [PATCH] 7809 - add ail config table (#492) --- migrations/000.567.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 migrations/000.567.sql diff --git a/migrations/000.567.sql b/migrations/000.567.sql new file mode 100644 index 0000000..9cf650a --- /dev/null +++ b/migrations/000.567.sql @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS automated_internal_linking_config; + +CREATE TABLE automated_internal_linking_config ( + id SERIAL PRIMARY KEY, + market_locale_id INTEGER NOT NULL REFERENCES market_locales(id) ON DELETE CASCADE, + config JSONB NOT NULL, + active BOOLEAN NOT NULL DEFAULT TRUE, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW() +); + +CREATE INDEX idx_ailc_market_locale_id ON automated_internal_linking_config(market_locale_id); +CREATE INDEX idx_ailc_active ON automated_internal_linking_config(active);