fix(C245): regenera a migration sobre a cadeia pós-C244

O snapshot da migration da sessão foi gerado antes do merge do C244
(face_figure); regenerado sobre a cadeia nova, o diff segue só coluna
catalog_metadata_checked_at + índice. Aplicada nos bancos do worktree.
This commit is contained in:
Francisco Solla 2026-10-02 09:50:48 -03:00
parent be7eac4937
commit 1667a4c914
3 changed files with 273 additions and 5 deletions

View file

@ -10707,6 +10707,240 @@
"checkConstraints": {},
"isRLSEnabled": false
},
"public.face_figure_references": {
"name": "face_figure_references",
"schema": "",
"columns": {
"_order": {
"name": "_order",
"type": "integer",
"primaryKey": false,
"notNull": true
},
"_parent_id": {
"name": "_parent_id",
"type": "integer",
"primaryKey": false,
"notNull": true
},
"id": {
"name": "id",
"type": "varchar",
"primaryKey": true,
"notNull": true
},
"vector": {
"name": "vector",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"model": {
"name": "model",
"type": "varchar",
"primaryKey": false,
"notNull": false
},
"source": {
"name": "source",
"type": "varchar",
"primaryKey": false,
"notNull": true
},
"added_at": {
"name": "added_at",
"type": "timestamp(3) with time zone",
"primaryKey": false,
"notNull": false
}
},
"indexes": {
"face_figure_references_order_idx": {
"name": "face_figure_references_order_idx",
"columns": [
{
"expression": "_order",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"face_figure_references_parent_id_idx": {
"name": "face_figure_references_parent_id_idx",
"columns": [
{
"expression": "_parent_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"face_figure_references_parent_id_fk": {
"name": "face_figure_references_parent_id_fk",
"tableFrom": "face_figure_references",
"tableTo": "face_figure",
"columnsFrom": [
"_parent_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.face_figure": {
"name": "face_figure",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar",
"primaryKey": false,
"notNull": true
},
"slug": {
"name": "slug",
"type": "varchar",
"primaryKey": false,
"notNull": true
},
"full_name": {
"name": "full_name",
"type": "varchar",
"primaryKey": false,
"notNull": false
},
"active": {
"name": "active",
"type": "boolean",
"primaryKey": false,
"notNull": false,
"default": true
},
"updated_at": {
"name": "updated_at",
"type": "timestamp(3) with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"created_at": {
"name": "created_at",
"type": "timestamp(3) with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {
"face_figure_name_idx": {
"name": "face_figure_name_idx",
"columns": [
{
"expression": "name",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
},
"face_figure_slug_idx": {
"name": "face_figure_slug_idx",
"columns": [
{
"expression": "slug",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"concurrently": false,
"method": "btree",
"with": {}
},
"face_figure_active_idx": {
"name": "face_figure_active_idx",
"columns": [
{
"expression": "active",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"face_figure_updated_at_idx": {
"name": "face_figure_updated_at_idx",
"columns": [
{
"expression": "updated_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"face_figure_created_at_idx": {
"name": "face_figure_created_at_idx",
"columns": [
{
"expression": "created_at",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.content_event": {
"name": "content_event",
"schema": "",
@ -16861,6 +17095,12 @@
"primaryKey": false,
"notNull": false
},
"face_figure_id": {
"name": "face_figure_id",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"content_event_id": {
"name": "content_event_id",
"type": "integer",
@ -17457,6 +17697,21 @@
"method": "btree",
"with": {}
},
"payload_locked_documents_rels_face_figure_id_idx": {
"name": "payload_locked_documents_rels_face_figure_id_idx",
"columns": [
{
"expression": "face_figure_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": false,
"concurrently": false,
"method": "btree",
"with": {}
},
"payload_locked_documents_rels_content_event_id_idx": {
"name": "payload_locked_documents_rels_content_event_id_idx",
"columns": [
@ -18134,6 +18389,19 @@
"onDelete": "cascade",
"onUpdate": "no action"
},
"payload_locked_documents_rels_face_figure_fk": {
"name": "payload_locked_documents_rels_face_figure_fk",
"tableFrom": "payload_locked_documents_rels",
"tableTo": "face_figure",
"columnsFrom": [
"face_figure_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
},
"payload_locked_documents_rels_content_event_fk": {
"name": "payload_locked_documents_rels_content_event_fk",
"tableFrom": "payload_locked_documents_rels",
@ -20641,6 +20909,6 @@
"tables": {},
"columns": {}
},
"id": "259081ef-c28c-45ad-a0e8-3beebedb3863",
"id": "68630991-3b35-408a-a524-0e57d9e898cc",
"prevId": "00000000-0000-0000-0000-000000000000"
}

View file

@ -93,7 +93,7 @@ import * as migration_20260926_163248_add_archive_photo_publication from './2026
import * as migration_20260927_193954_add_face_subject from './20260927_193954_add_face_subject';
import * as migration_20261001_040904_add_archive_photo_face from './20261001_040904_add_archive_photo_face';
import * as migration_20261001_235632_add_face_figure from './20261001_235632_add_face_figure';
import * as migration_20261002_114110_add_archive_photo_metadata_checked from './20261002_114110_add_archive_photo_metadata_checked';
import * as migration_20261002_124956_add_archive_photo_metadata_checked from './20261002_124956_add_archive_photo_metadata_checked';
export const migrations = [
{
@ -572,8 +572,8 @@ export const migrations = [
name: '20261001_235632_add_face_figure',
},
{
up: migration_20261002_114110_add_archive_photo_metadata_checked.up,
down: migration_20261002_114110_add_archive_photo_metadata_checked.down,
name: '20261002_114110_add_archive_photo_metadata_checked'
up: migration_20261002_124956_add_archive_photo_metadata_checked.up,
down: migration_20261002_124956_add_archive_photo_metadata_checked.down,
name: '20261002_124956_add_archive_photo_metadata_checked'
},
];