tiqued/drizzle/meta/0000_snapshot.json
themodrnhakr daa85abc8c Fix invalid SQL syntax for index creation.
One of the sql generations mistakenly looked for a field value of '?'.
Whatever code was causing this to occur is no longer an issue. This does
highlight the difficulty of needing to delete or modify faulty migration
files.
2025-09-25 15:57:52 -05:00

119 lines
2.7 KiB
JSON

{
"version": "6",
"dialect": "sqlite",
"id": "feb276b9-6e2b-4204-885b-167701a4a707",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"records": {
"name": "records",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"record_id": {
"name": "record_id",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"type_id": {
"name": "type_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"records_record_id_unique": {
"name": "records_record_id_unique",
"columns": [
"record_id"
],
"isUnique": true
},
"chores_index": {
"name": "chores_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = 1"
},
"project_index": {
"name": "project_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = 2"
},
"ticket_index": {
"name": "ticket_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = 3"
}
},
"foreignKeys": {
"records_type_id_record_types_id_fk": {
"name": "records_type_id_record_types_id_fk",
"tableFrom": "records",
"tableTo": "record_types",
"columnsFrom": [
"type_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"record_types": {
"name": "record_types",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"type": {
"name": "type",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}