7809 - add ail config table (#492)
This commit is contained in:
@@ -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);
|
||||||
Reference in New Issue
Block a user