update
This commit is contained in:
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"type": "diff",
|
||||
"version": "10",
|
||||
"dialect": "postgres",
|
||||
"id": "d8d24fdc-bb81-4b87-8ec6-6d18c20db156",
|
||||
"prevIds": [
|
||||
"093dfccd-003b-4b87-9780-15e56d12e34e"
|
||||
],
|
||||
"footprints": [
|
||||
{
|
||||
"statementType": "alter_enum",
|
||||
"statementTarget": [
|
||||
"enum",
|
||||
"public",
|
||||
"conversation_type"
|
||||
],
|
||||
"writes": [
|
||||
"s|enum|public.conversation_type"
|
||||
],
|
||||
"reads": [
|
||||
"n|sch|public"
|
||||
]
|
||||
},
|
||||
{
|
||||
"statementType": "add_column",
|
||||
"statementTarget": [
|
||||
"column",
|
||||
"public",
|
||||
"conversation",
|
||||
"name"
|
||||
],
|
||||
"writes": [
|
||||
"s|col|public.conversation.name",
|
||||
"n|col|public.conversation.name",
|
||||
"e|col|public.conversation.name"
|
||||
],
|
||||
"reads": [
|
||||
"n|tbl|public.conversation",
|
||||
"n|sch|public"
|
||||
]
|
||||
},
|
||||
{
|
||||
"statementType": "add_column",
|
||||
"statementTarget": [
|
||||
"column",
|
||||
"public",
|
||||
"conversation",
|
||||
"owner_id"
|
||||
],
|
||||
"writes": [
|
||||
"s|col|public.conversation.owner_id",
|
||||
"n|col|public.conversation.owner_id",
|
||||
"e|col|public.conversation.owner_id"
|
||||
],
|
||||
"reads": [
|
||||
"n|tbl|public.conversation",
|
||||
"n|sch|public"
|
||||
]
|
||||
},
|
||||
{
|
||||
"statementType": "create_fk",
|
||||
"statementTarget": [
|
||||
"table",
|
||||
"public",
|
||||
"conversation"
|
||||
],
|
||||
"writes": [
|
||||
"s|fk|public.conversation.conversation_owner_id_user_id_fkey",
|
||||
"n|fk|public.conversation.conversation_owner_id_user_id_fkey",
|
||||
"e|fk|public.conversation.conversation_owner_id_user_id_fkey",
|
||||
"n|con|public.conversation.conversation_owner_id_user_id_fkey"
|
||||
],
|
||||
"reads": [
|
||||
"n|tbl|public.conversation",
|
||||
"n|sch|public",
|
||||
"n|tbl|public.user",
|
||||
"n|sch|public",
|
||||
"n|col|public.conversation.owner_id",
|
||||
"n|col|public.user.id",
|
||||
"e|uniqueness|public.user.id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"deltas": [
|
||||
{
|
||||
"op": "create",
|
||||
"row": {
|
||||
"schema": "public",
|
||||
"table": "conversation",
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"typeSchema": null,
|
||||
"notNull": false,
|
||||
"dimensions": 0,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"identity": null,
|
||||
"entityType": "columns"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "create",
|
||||
"row": {
|
||||
"schema": "public",
|
||||
"table": "conversation",
|
||||
"name": "owner_id",
|
||||
"type": "text",
|
||||
"typeSchema": null,
|
||||
"notNull": false,
|
||||
"dimensions": 0,
|
||||
"default": null,
|
||||
"generated": null,
|
||||
"identity": null,
|
||||
"entityType": "columns"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "create",
|
||||
"row": {
|
||||
"schema": "public",
|
||||
"table": "conversation",
|
||||
"name": "conversation_owner_id_user_id_fkey",
|
||||
"nameExplicit": false,
|
||||
"columns": [
|
||||
"owner_id"
|
||||
],
|
||||
"schemaTo": "public",
|
||||
"tableTo": "user",
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onUpdate": "NO ACTION",
|
||||
"onDelete": "SET NULL",
|
||||
"entityType": "fks"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "alter",
|
||||
"key": "enums\u0000[\"public\",\"conversation_type\"]",
|
||||
"set": {
|
||||
"values": [
|
||||
"direct",
|
||||
"group"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user