Update database schema. Client rules are randomly deleted because of the foreign key. Remove all foreign keys from db schema
This commit is contained in:
@@ -140,13 +140,6 @@ const schema: BUN_SQLITE_DatabaseSchemaType = {
|
||||
{
|
||||
fieldName: "media_id",
|
||||
dataType: "INTEGER",
|
||||
foreignKey: {
|
||||
cascadeDelete: true,
|
||||
destinationTableName: "media",
|
||||
destinationTableColumnName: "id",
|
||||
destinationTableColumnType: "INTEGER",
|
||||
foreignKeyName: "media_paradigm_media_fk",
|
||||
},
|
||||
},
|
||||
{
|
||||
fieldName: "media_paradigm",
|
||||
@@ -267,13 +260,6 @@ const schema: BUN_SQLITE_DatabaseSchemaType = {
|
||||
{
|
||||
fieldName: "client_id",
|
||||
dataType: "INTEGER",
|
||||
foreignKey: {
|
||||
cascadeDelete: true,
|
||||
destinationTableName: "clients",
|
||||
destinationTableColumnName: "id",
|
||||
destinationTableColumnType: "INTEGER",
|
||||
foreignKeyName: "client_rules_client_fk",
|
||||
},
|
||||
},
|
||||
{
|
||||
fieldName: "rule_type",
|
||||
|
||||
Reference in New Issue
Block a user