refactor(server): squash drizzle migrations 0000-0004 into single baseline
Generated by pnpm db:generate against the current schema.ts — replaces five historical migrations (0000_initial, 0001_clear_earthquake, 0002_peer_approval_requests, 0003_classy_loki, 0004_cooing_black_knight) with one baseline that matches the schema shape all five produced together. Pi + VM __drizzle_migrations rows will be rewritten per the Phase 2 surgery procedure before this deploys to either instance; DBs already match the new baseline, no DDL runs. Phase 1 audit verified no still-present bugs depend on any of the squashed migrations. Refs backlog #31 Phase 2.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "092e4ee0-51c4-4332-890c-fa011657a9a5",
|
||||
"id": "b5b7d74f-4158-4798-9f01-2cbab126f9da",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"tables": {
|
||||
"attachments": {
|
||||
@@ -1456,7 +1456,15 @@
|
||||
"name": "consecutive_failures",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"consecutive_auth_failures": {
|
||||
"name": "consecutive_auth_failures",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
@@ -1850,6 +1858,14 @@
|
||||
"autoincrement": false,
|
||||
"default": 90
|
||||
},
|
||||
"auto_accept_peering": {
|
||||
"name": "auto_accept_peering",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 1
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "integer",
|
||||
@@ -2179,6 +2195,65 @@
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"peer_approval_requests": {
|
||||
"name": "peer_approval_requests",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"origin": {
|
||||
"name": "origin",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"instance_name": {
|
||||
"name": "instance_name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"hmac_secret": {
|
||||
"name": "hmac_secret",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"requested_at": {
|
||||
"name": "requested_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"peer_approval_requests_origin_unique": {
|
||||
"name": "peer_approval_requests_origin_unique",
|
||||
"columns": [
|
||||
"origin"
|
||||
],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {}
|
||||
},
|
||||
"reactions": {
|
||||
"name": "reactions",
|
||||
"columns": {
|
||||
|
||||
Reference in New Issue
Block a user