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:
Jannis Braun
2026-04-24 23:26:20 +02:00
parent a181b1ad10
commit 707d3217f1
10 changed files with 92 additions and 9682 deletions
@@ -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": {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+2 -30
View File
@@ -5,36 +5,8 @@
{
"idx": 0,
"version": "6",
"when": 1775687181033,
"tag": "0000_initial",
"breakpoints": true
},
{
"idx": 1,
"version": "6",
"when": 1775734599940,
"tag": "0001_clear_earthquake",
"breakpoints": true
},
{
"idx": 2,
"version": "6",
"when": 1776689384005,
"tag": "0002_peer_approval_requests",
"breakpoints": true
},
{
"idx": 3,
"version": "6",
"when": 1776789567488,
"tag": "0003_classy_loki",
"breakpoints": true
},
{
"idx": 4,
"version": "6",
"when": 1776802580650,
"tag": "0004_cooing_black_knight",
"when": 1777065939127,
"tag": "0000_lethal_wildside",
"breakpoints": true
}
]