Regenerate archive migration against current master

Master now owns migration 0306. Generate the archive constraint as 0307, retaining compatibility with older logical restores. All 20 lifecycle, migration snapshot, and lagging restore checks pass.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Nicky LeachandPaperclip committed 2026-10-06 11:32:19 -07:00
1 parent 1d5442826e
commit 1021953035
3 files changed
+248 -5

No files matched your search

@@ -1,6 +1,6 @@
{
"id": "befbd58f-acb8-4fd4-bb64-4c1c0cfd0f3e",
"prevId": "357aa875-870e-4232-9b3f-4194a2c74844",
"id": "ff1eeb0a-fea3-4cd1-b45c-ce712c4667ff",
"prevId": "164deda4-7a03-45fb-8236-d6ea0c43da11",
"version": "7",
"dialect": "postgresql",
"tables": {
@@ -2894,7 +2894,7 @@
"checkConstraints": {
"ai_connection_defaults_provider_check": {
"name": "ai_connection_defaults_provider_check",
"value": "\"ai_connection_defaults\".\"provider\" in ('anthropic','openai','openrouter','xai')"
"value": "\"ai_connection_defaults\".\"provider\" in ('anthropic','openai','openrouter','xai','google')"
},
"ai_connection_defaults_method_check": {
"name": "ai_connection_defaults_method_check",
@@ -3367,7 +3367,7 @@
"checkConstraints": {
"ai_provider_defaults_provider_check": {
"name": "ai_provider_defaults_provider_check",
"value": "\"ai_provider_defaults\".\"provider\" in ('anthropic','openai','openrouter','xai')"
"value": "\"ai_provider_defaults\".\"provider\" in ('anthropic','openai','openrouter','xai','google')"
}
},
"isRLSEnabled": false
@@ -39410,7 +39410,7 @@
},
"resource_lifecycle_events_action_check": {
"name": "resource_lifecycle_events_action_check",
"value": "\"resource_lifecycle_events\".\"action\" = 'create' OR (\"resource_lifecycle_events\".\"resource_type\" = 'project' AND \"resource_lifecycle_events\".\"action\" = 'update') OR (\"resource_lifecycle_events\".\"resource_type\" = 'agent' AND \"resource_lifecycle_events\".\"action\" IN ('pause', 'resume', 'terminate'))"
"value": "\"resource_lifecycle_events\".\"action\" = 'create' OR (\"resource_lifecycle_events\".\"resource_type\" = 'project' AND \"resource_lifecycle_events\".\"action\" IN ('update', 'archive')) OR (\"resource_lifecycle_events\".\"resource_type\" = 'agent' AND \"resource_lifecycle_events\".\"action\" IN ('pause', 'resume', 'terminate'))"
}
},
"isRLSEnabled": false
@@ -51701,6 +51701,13 @@
"primaryKey": false,
"notNull": true
},
"grant_types": {
"name": "grant_types",
"type": "jsonb",
"primaryKey": false,
"notNull": true,
"default": "'[\"authorization_code\",\"refresh_token\"]'::jsonb"
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
@@ -51717,6 +51724,181 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.mcp_oauth_device_requests": {
"name": "mcp_oauth_device_requests",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"client_id": {
"name": "client_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
"device_code_hash": {
"name": "device_code_hash",
"type": "text",
"primaryKey": false,
"notNull": true
},
"user_code_hash": {
"name": "user_code_hash",
"type": "text",
"primaryKey": false,
"notNull": true
},
"resource": {
"name": "resource",
"type": "text",
"primaryKey": false,
"notNull": true
},
"scopes": {
"name": "scopes",
"type": "jsonb",
"primaryKey": false,
"notNull": true
},
"requested_company_id": {
"name": "requested_company_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"source_hash": {
"name": "source_hash",
"type": "text",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'pending'"
},
"grant_id": {
"name": "grant_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"interval_seconds": {
"name": "interval_seconds",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 5
},
"next_poll_at": {
"name": "next_poll_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"mcp_oauth_device_code_uq": {
"name": "mcp_oauth_device_code_uq",
"columns": [
{
"expression": "device_code_hash",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
},
"mcp_oauth_user_code_uq": {
"name": "mcp_oauth_user_code_uq",
"columns": [
{
"expression": "user_code_hash",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
},
"mcp_oauth_device_expiry_idx": {
"name": "mcp_oauth_device_expiry_idx",
"columns": [
{
"expression": "expires_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"mcp_oauth_device_requests_client_id_mcp_oauth_clients_id_fk": {
"name": "mcp_oauth_device_requests_client_id_mcp_oauth_clients_id_fk",
"tableFrom": "mcp_oauth_device_requests",
"tableTo": "mcp_oauth_clients",
"columnsFrom": [
"client_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"mcp_oauth_device_requests_grant_id_mcp_oauth_grants_id_fk": {
"name": "mcp_oauth_device_requests_grant_id_mcp_oauth_grants_id_fk",
"tableFrom": "mcp_oauth_device_requests",
"tableTo": "mcp_oauth_grants",
"columnsFrom": [
"grant_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.mcp_oauth_grants": {
"name": "mcp_oauth_grants",
"schema": "",
@@ -51842,6 +52024,54 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.mcp_oauth_metadata_admissions": {
"name": "mcp_oauth_metadata_admissions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"source_hash": {
"name": "source_hash",
"type": "text",
"primaryKey": false,
"notNull": true
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {
"mcp_oauth_metadata_admissions_expiry_idx": {
"name": "mcp_oauth_metadata_admissions_expiry_idx",
"columns": [
{
"expression": "expires_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.mcp_oauth_requests": {
"name": "mcp_oauth_requests",
"schema": "",
@@ -51888,6 +52118,12 @@
"primaryKey": false,
"notNull": true
},
"requested_company_id": {
"name": "requested_company_id",
"type": "uuid",
"primaryKey": false,
"notNull": false
},
"grant_id": {
"name": "grant_id",
"type": "uuid",
+7
View File
@@ -2136,6 +2136,13 @@
"when": 1791308714862,
"tag": "0306_familiar_titania",
"breakpoints": true
},
{
"idx": 307,
"version": "7",
"when": 1791311441769,
"tag": "0307_cool_naoko",
"breakpoints": true
}
]
}