feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s

This commit is contained in:
Anya Tokugawa committed 2026-11-15 05:47:14 +09:00
1 parent 96065d1e89
commit 0ba1dcfef0
243 files changed
+21441 -3090

No files matched your search

@@ -0,0 +1,158 @@
package store
// Frozen source column inventory for the current SQLite application schema.
// Unknown tables/columns block copying. Changes require an explicit review.
var applicationImportColumns = map[string]string{
"activity_outbox": "actor_uuid,attempts,claimed_at_ms,created_at_ms,domain_uuid,event_type,idempotency_key,last_error,next_attempt_ms,payload,sequence,status,target_kind,target_uuid,uuid",
"activity_outbox_checkpoints": "consumer_id,domain_uuid,last_sequence,updated_at_ms",
"activity_outbox_heads": "domain_uuid,event_type,last_sequence",
"activity_outbox_migrations": "name",
"adapter_sessions": "base_revision_uuid,created_at_ms,domain_uuid,exchanged_at_ms,object_uuid,plugin_id,principal_uuid,root_path,session_expires_at_ms,session_hash,ticket_expires_at_ms,ticket_hash",
"asset_head_history": "action,actor_uuid,address,content_type,created_at_ms,document_hash,domain_uuid,filename,id,size_bytes",
"assets": "address,content_type,created_at_ms,domain_uuid,filename,head_document_hash,object_uuid,size_bytes,updated_at_ms",
"auth_audit_log": "created_at_ms,detail_json,domain_uuid,event,id,outcome,principal_uuid,request_id,target_id,target_type",
"auth_capability_grants": "capability,created_at_ms,role_uuid,target_id,target_type,uuid",
"auth_challenges": "attempt_count,consumed_at_ms,created_at_ms,domain_uuid,expires_at_ms,kind,payload_json,principal_uuid,token_hash,uuid",
"auth_cli_requests": "attempts,browser_hash,challenge,code_hash,created_ms,device_hash,domain_uuid,expires_ms,id,mfa_level,next_poll_ms,oidc_attempts,origin,principal_uuid,remember,state",
"auth_credentials": "created_at_ms,enabled,identifier,kind,parameters_json,principal_uuid,secret_hash,updated_at_ms,uuid",
"auth_group_mappings": "domain_uuid,enabled,external_group,group_uuid,mode,provider_type,provider_uuid,uuid",
"auth_group_role_bindings": "created_at_ms,group_uuid,role_uuid",
"auth_providers": "config_json,created_at_ms,domain_uuid,enabled,kind,secret_encrypted,updated_at_ms,uuid",
"auth_role_bindings": "created_at_ms,membership_uuid,role_uuid",
"auth_roles": "created_at_ms,description,domain_uuid,name,uuid",
"auth_sessions": "auth_time_ms,domain_uuid,expires_at_ms,last_seen_at_ms,mfa_level,principal_uuid,revoked_at_ms,token_hash,uuid",
"broadcasts": "body,created_at_ms,domain_uuid,ends_at_ms,severity,starts_at_ms,title,updated_at_ms,uuid",
"browser_navigation_links": "created_at_ms,domain_uuid,is_directory,label,path,position,principal_uuid,updated_at_ms,uuid",
"calendar_event_cache": "calendar,data,domain,end,etag,month,start,uid",
"calendar_index_state": "calendar,domain,version",
"calendar_month_cache": "calendar,domain,hash,month",
"campus_admin_grants": "created_at_ms,group_uuid,member_role,membership_uuid,source",
"campus_admin_membership_origins": "domain_uuid,membership_uuid,principal_uuid",
"campus_admin_migrations": "key",
"campus_tokens": "campus_uuid,created_at,id,label,last_used_at,revoked,token_hash",
"campuses": "authority_mode,controller_transport,created_at,default_lang,enabled,fqdn,id,last_contact_at,last_contact_error,name,title,uuid",
"city_governance_epochs": "domain_uuid,version",
"city_governance_events": "actor_uuid,after_json,before_json,created_at_ms,domain_uuid,epoch,id,node_kind,node_uuid",
"city_owner_bindings": "actor_uuid,created_at_ms,domain_uuid,membership_uuid,node_kind,node_uuid",
"city_page_overrides": "domain_uuid,page_uuid,spot_uuid",
"config": "domain_uuid,key,updated_at,value",
"document_backfills": "completed,last_uuid,processed,store_id,updated_at_ms",
"domain_entry_settings": "domain_uuid,settings_json",
"domain_memberships": "created_at_ms,domain_uuid,principal_uuid,state,uuid",
"domain_topology_versions": "domain_uuid,updated_at_ms,version",
"domains": "campus_uuid,created_at,domain,enabled,id,instance_fingerprint,instance_fqdn,name,placement,title,uuid",
"event_definitions": "created_at_ms,enabled,event_key,event_type,interval_seconds,max_attempts,name,next_run_at_ms,payload,priority,schedule_kind,updated_at_ms,uuid",
"event_jobs": "attempts,cancel_requested,created_at_ms,error,event_key,event_type,event_uuid,finished_at_ms,max_attempts,payload,priority,run_at_ms,started_at_ms,status,updated_at_ms,uuid",
"event_log_buckets": "bucket_start_ms,count,event_type,first_at_ms,last_at_ms,level,sample_message",
"event_log_policies": "aggregate_after_hours,bucket_seconds,event_type,max_rows,retention_hours",
"event_logs": "created_at_ms,event_uuid,id,job_uuid,level,message",
"event_queue_settings": "concurrency,id,max_depth,paused,retention_hours,retry_base_seconds",
"federation_instance_capabilities": "instance_uuid,manifest_version",
"federation_instances": "campus_uuid,created_at,fingerprint,fqdn,id,last_seen_at,status,uuid",
"federation_manifest_state": "applied_at,applied_revision,campus_uuid,controller_fingerprint,controller_public_key,manifest_json",
"federation_manifest_versions": "campus_uuid,manifest_hash,revision,updated_at",
"feed_actions": "claim,created_ms,desired,domain_uuid,error,field,item_id,owner_uuid,request_id,source_uuid,source_version,status,until_ms",
"feed_import_receipts": "domain_uuid,input_hash,owner_uuid,request_id,result",
"feed_items": "body,body_html,feed,folder,id,is_read,published_ms,remote_categories,remote_feed,source_uuid,starred,title,url",
"feed_note_receipts": "domain_uuid,input_hash,owner_uuid,page_uuid,request_id",
"feed_sources": "credential,domain_uuid,enabled,error,etag,folder,interval_seconds,last_ms,lease,lease_until,modified,next_ms,owner_uuid,provider,remote_catalog,remote_folders,title,url,uuid,version,write_enabled",
"feed_states": "id,is_read,source_uuid,starred,version",
"group_members": "created_at_ms,group_uuid,member_role,membership_uuid,source",
"group_permissions": "created_at_ms,group_uuid,permission,scope_path,uuid",
"groups": "builtin_key,created_at_ms,description,display_name,domain_uuid,inherit_members,name,state,updated_at_ms,uuid,visibility",
"import_city_edges": "created_at_ms,page_uuid,session_uuid,spot_uuid",
"import_city_journal": "created_at_ms,kind,node_uuid,session_uuid",
"import_items": "confidence,content_type,selected,sequence,session_uuid,size,source_path,suggested_quartier,suggested_spot,suggested_street,target_path,title",
"import_journal": "completed,created_at_ms,object_uuid,path,sequence,session_uuid",
"import_sessions": "actor_uuid,archive_name,archive_path,created_at_ms,domain_uuid,error,markdown_files,status,target_prefix,total_files,updated_at_ms,uuid",
"locality_access_entries": "domain_uuid,node_kind,node_uuid,permission,subject_kind,subject_name,subject_uuid",
"locality_access_policies": "actor_uuid,authority_rank,domain_uuid,grants_access,node_kind,node_uuid,scope_path",
"locality_auto_publication": "actor_uuid,domain_uuid,mode,node_kind,node_uuid,scope_path,version",
"locality_publication_entries": "document_hash,domain_uuid,lang,node_kind,node_uuid,object_uuid,path,revision_uuid",
"locality_publication_manifests": "actor_uuid,created_at_ms,domain_uuid,epoch,node_kind,node_uuid,topology_version",
"locality_publication_policies": "actor_uuid,domain_uuid,node_kind,node_uuid,policy,updated_at_ms",
"locality_publication_versions": "domain_uuid,node_kind,node_uuid,version",
"navigation_generation": "id,version",
"notification_inbox": "created_at_ms,domain_uuid,event_uuid,href,kind,message,read_at_ms,recipient_uuid,request_uuid,status,uuid",
"notification_push_keys": "id,private_key,public_key",
"notification_push_queue": "attempts,created_at_ms,lease_until_ms,next_at_ms,notification_uuid,subscription_id",
"notification_push_subscriptions": "domain_uuid,expires_at_ms,foreground_until_ms,id,owner_uuid,session_hash,subscription",
"object_origins": "created_at,domain_uuid,object_uuid",
"objects": "created_at,kind,uuid",
"organizer_activity_bridge": "id,last_sequence",
"organizer_capture_receipts": "domain_uuid,item_uuid,owner_uuid,request_hash,request_uuid",
"organizer_changes": "actor_uuid,created_at_ms,domain_uuid,item_uuid,sequence,version",
"organizer_contact_changes": "domain_uuid,owner_uuid,sequence,uuid",
"organizer_contact_credentials": "credential_id",
"organizer_contact_epoch": "id,value",
"organizer_contact_names": "domain_uuid,name,owner_uuid,uuid",
"organizer_contact_revisions": "created_ms,deleted,domain_uuid,hash,owner_uuid,uuid,version",
"organizer_contacts": "data,deleted,domain_uuid,hash,name,owner_uuid,search,uid,uuid,version",
"organizer_dashboard_layouts": "data,domain_uuid,owner_uuid,version",
"organizer_dav_collections": "domain_uuid,owner_uuid,path,project_uuid",
"organizer_dav_compat": "credential_id",
"organizer_dav_credentials": "created_ms,domain_uuid,expires_ms,id,label,owner_uuid,secret_hash,write_access",
"organizer_dav_default_lists": "domain_uuid,owner_uuid,title,updated_at_ms",
"organizer_dav_legacy_hrefs": "domain_uuid,item_uuid,name,owner_uuid",
"organizer_dav_resources": "domain_uuid,item_uuid,name,owner_uuid,uid",
"organizer_dav_scopes": "credential_id,scope",
"organizer_digest_attempts": "created_ms,day,domain_uuid,kind,owner_uuid,preference_version,reason,state,timezone,updated_ms,uuid",
"organizer_digest_deliveries": "attempt_uuid,day,domain_uuid,owner_uuid,state,updated_ms",
"organizer_digest_requests": "created_ms,day,domain_uuid,duplicate_ack,expected_attempt,owner_uuid,uuid",
"organizer_focus": "created_at_ms,deadline_ms,domain_uuid,duration_ms,owner_uuid,phase,remaining_ms,state,task_uuid,updated_at_ms,uuid,version",
"organizer_focus_changes": "action,created_at_ms,data,session_uuid,version",
"organizer_focus_spans": "closed,domain_uuid,end_ms,owner_uuid,phase,session_uuid,start_ms,task_uuid,version",
"organizer_items": "archived,bucket,created_at_ms,data,document_hash,domain_uuid,due_on,end_on,kind,owner_uuid,parent_uuid,planned_on,project_uuid,review_on,start_on,status,title,updated_at_ms,uuid,version",
"organizer_reminders": "civil_date,domain_uuid,fire_at_ms,item_uuid,kind,notification_key,owner_uuid,source_version,state,timezone",
"organizer_revisions": "actor_uuid,created_at_ms,document_hash,domain_uuid,item_uuid,version",
"organizer_task_deletions": "dav_name,dav_uid,deleted_at_ms,domain_uuid,item_uuid,owner_uuid,version",
"organizer_task_metrics": "completed_ms,complexity,domain_uuid,estimate,owner_uuid,task_uuid",
"organizer_task_preferences": "data,domain_uuid,next_digest_ms,owner_uuid,version",
"organizer_time_blocks": "calendar_uuid,created_at_ms,domain_uuid,end,event_uid,owner_uuid,start,state,task_uuid,title,uuid",
"organizer_work_revisions": "action,changed_ms,data,domain_uuid,owner_uuid,reason,version,work_uuid",
"organizer_work_sessions": "cancelled_ms,domain_uuid,end_ms,owner_uuid,start_ms,task_uuid,uuid,version",
"paths": "created_at,domain_uuid,is_primary,object_uuid,path",
"periodical_entries": "category,domain_uuid,kind,local_date,owner_uuid,page_uuid,timezone,title,version",
"periodical_events": "actor_uuid,created_at_ms,domain_uuid,id,kind,operation,page_uuid,version",
"periodical_posts": "actor_uuid,digest,domain_uuid,kind,page_uuid,request_id",
"periodical_prefixes": "domain_uuid,kind,prefix",
"periodical_projections": "domain_uuid,kind,prefix,source_uuid",
"periodical_settings": "domain_uuid,enabled,kind",
"personal_appearance": "data,domain_uuid,owner_uuid,version",
"principal_identities": "attributes_json,created_at_ms,issuer,principal_uuid,provider_type,provider_uuid,subject,uuid",
"principals": "avatar,avatar_content_type,created_at_ms,display_name,email,state,updated_at_ms,uuid",
"profile_contacts": "domain_uuid,phone_display,phone_number,principal_uuid,updated_at_ms,version,visibility",
"projection_metadata": "document_hash,error,kind,payload,retry_at_ms,updated_at_ms,version",
"publication_decisions": "created_at_ms,decision,generation,justification,request_uuid,reviewer_uuid,uuid",
"publication_requests": "created_at_ms,domain_uuid,expires_at_ms,generation,idempotency_key,policy_version,requester_uuid,scope_kind,scope_uuid,state,subject_hash,subject_json,updated_at_ms,uuid",
"resource_samples": "id,job_uuid,payload,timestamp_ms",
"revision_document_refs": "document_hash,revision_uuid",
"revisions": "body,content_type,created_at,created_at_ms,document_hash,filename,lang,message,object_uuid,uuid",
"search_schema_state": "name",
"spot_pages": "created_at_ms,edge_type,featured,label,page_uuid,sort_key,source,spot_uuid",
"spot_relations": "created_at_ms,relation_type,source_spot_uuid,target_spot_uuid,weight",
"spots": "charter_json,created_at_ms,domain_uuid,landing_json,name,path_prefix,schema_json,state,summary,title,updated_at_ms,uuid,version",
"street_inbox_pages": "created_at_ms,page_uuid,street_uuid",
"street_spots": "created_at_ms,section,sort_key,spot_uuid,street_uuid",
"tags": "created_at,object_uuid,tag",
"topology_events": "actor_principal_uuid,after_json,before_json,created_at_ms,domain_uuid,id,operation,request_id,target_type,target_uuid,topology_version",
"user_space_path_policies": "actor_uuid,domain_uuid,path,principal_uuid,updated_at_ms,visibility",
"user_space_policies": "actor_uuid,avatar_visibility,descendant_visibility,domain_uuid,principal_uuid,profile_visibility,root_visibility,updated_at_ms,version",
"user_space_policy_events": "actor_uuid,after_json,before_json,created_at_ms,domain_uuid,id,principal_uuid",
"zombie_gc_maintenance": "grace_seconds,singleton",
"zones": "charter_json,created_at_ms,description,domain_uuid,kind,name,parent_uuid,path_prefix,policy_json,sort_key,state,title,updated_at_ms,uuid,version",
}
// Only backend migration ledgers and rebuildable SQLite FTS projections are omitted.
var applicationImportOmissions = map[string]string{
"latest_revision_index": "content_type,created_at_ms,document_hash,filename,object_uuid,revision_uuid",
"revision_search": "body,filename,object_uuid,revision_uuid",
"revision_search_config": "k,v",
"revision_search_content": "c0,c1,c2,c3,id",
"revision_search_data": "block,id",
"revision_search_docsize": "id,sz",
"revision_search_idx": "pgno,segid,term",
"revision_search_state": "revision_uuid",
"schema_migration_steps": "applied_at_ms,checksum,component,name,version",
"schema_migrations": "applied_at,name",
}