feat: add echarts dependencies + preset performance link schema

This commit is contained in:
2026-04-26 15:38:23 +08:00
parent 12ef1dd537
commit 9ff44e3d15
6 changed files with 52 additions and 3 deletions
@@ -0,0 +1,2 @@
ALTER TABLE "community_presets" ADD COLUMN "performance_entry_id" text;--> statement-breakpoint
ALTER TABLE "community_presets" ADD CONSTRAINT "community_presets_performance_entry_id_performance_entries_id_fk" FOREIGN KEY ("performance_entry_id") REFERENCES "public"."performance_entries"("id") ON DELETE set null ON UPDATE no action;
@@ -1,6 +1,6 @@
{
"id": "273a7a41-0813-4612-ad50-bc53aa0eac5f",
"prevId": "c6630c3d-832a-4f22-a679-2c76621fc4a2",
"id": "7f7353e5-646d-4e21-92e6-250b5b28ee50",
"prevId": "273a7a41-0813-4612-ad50-bc53aa0eac5f",
"version": "7",
"dialect": "postgresql",
"tables": {
@@ -567,6 +567,12 @@
"notNull": true,
"default": 0
},
"performance_entry_id": {
"name": "performance_entry_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
"settings_json": {
"name": "settings_json",
"type": "jsonb",
@@ -628,6 +634,19 @@
],
"onDelete": "set null",
"onUpdate": "no action"
},
"community_presets_performance_entry_id_performance_entries_id_fk": {
"name": "community_presets_performance_entry_id_performance_entries_id_fk",
"tableFrom": "community_presets",
"tableTo": "performance_entries",
"columnsFrom": [
"performance_entry_id"
],
"columnsTo": [
"id"
],
"onDelete": "set null",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
+8 -1
View File
@@ -29,6 +29,13 @@
"when": 1777115371276,
"tag": "0004_aspiring_meggan",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1777189057323,
"tag": "0005_add_preset_performance_link",
"breakpoints": true
}
]
}
}