Post Typen Verwalten + Strategy weight
This commit is contained in:
10
config/migrate_add_strategy_weight.sql
Normal file
10
config/migrate_add_strategy_weight.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Add strategy_weight column to post_types table
|
||||
-- This column controls how strongly the company strategy influences AI post generation
|
||||
-- Range: 0.0 (ignore strategy) to 1.0 (strictly follow strategy)
|
||||
|
||||
ALTER TABLE post_types
|
||||
ADD COLUMN IF NOT EXISTS strategy_weight FLOAT DEFAULT 0.5
|
||||
CHECK (strategy_weight >= 0.0 AND strategy_weight <= 1.0);
|
||||
|
||||
-- Set default value for existing rows
|
||||
UPDATE post_types SET strategy_weight = 0.5 WHERE strategy_weight IS NULL;
|
||||
Reference in New Issue
Block a user