diff --git a/backend/migrations/20240514091000_fix_php_migration.down.sql b/backend/migrations/20240514091000_fix_php_migration.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20240514091000_fix_php_migration.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20240514091000_fix_php_migration.up.sql b/backend/migrations/20240514091000_fix_php_migration.up.sql new file mode 100644 index 0000000000..9c9c083245 --- /dev/null +++ b/backend/migrations/20240514091000_fix_php_migration.up.sql @@ -0,0 +1,2 @@ +-- Add up migration script here +UPDATE config SET name = 'worker__default_tmp' WHERE name = 'worker__default'; \ No newline at end of file diff --git a/backend/migrations/20240515071725_fix_php_migration_2.down.sql b/backend/migrations/20240515071725_fix_php_migration_2.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20240515071725_fix_php_migration_2.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20240515071725_fix_php_migration_2.up.sql b/backend/migrations/20240515071725_fix_php_migration_2.up.sql new file mode 100644 index 0000000000..e5a2376006 --- /dev/null +++ b/backend/migrations/20240515071725_fix_php_migration_2.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +UPDATE config SET name = 'worker__default' WHERE name = 'worker__default_tmp'; +UPDATE config set config = jsonb_set(config, '{worker_tags}', config->'worker_tags' || '["php"]'::jsonb) where name = 'worker__default' and config @> '{"worker_tags": ["deno", "python3", "go", "bash", "powershell", "dependency", "flow", "hub", "other", "bun"]}'::jsonb AND NOT config->'worker_tags' @> '"php"'::jsonb;