fix(mobile): database migration (#3903)

This commit is contained in:
Stephen Zhou 2025-06-11 16:05:01 +08:00 committed by GitHub
parent f325da0c31
commit fa99d6f266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 7 deletions

View File

@ -32,4 +32,4 @@ DROP TABLE `users`;--> statement-breakpoint
ALTER TABLE `__new_users` RENAME TO `users`;--> statement-breakpoint
ALTER TABLE `feeds` ADD `tip_users` text;--> statement-breakpoint
ALTER TABLE `feeds` ADD `published_at` integer;--> statement-breakpoint
ALTER TABLE `inboxes` ADD `secret` text NOT NULL;
ALTER TABLE `inboxes` ADD `secret` text DEFAULT '' NOT NULL;

View File

@ -1,7 +1,7 @@
{
"version": "6",
"dialect": "sqlite",
"id": "1b4d12ed-8a99-40de-9d48-e70b006faafa",
"id": "04ab0964-78ae-4c9b-a5a8-b4b05d239d75",
"prevId": "61f98b38-f03a-4f57-beb4-8c219ac1331c",
"tables": {
"collections": {
@ -368,7 +368,8 @@
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
"autoincrement": false,
"default": "''"
}
},
"indexes": {},

View File

@ -173,8 +173,8 @@
{
"idx": 24,
"version": "6",
"when": 1749483541691,
"tag": "0024_smiling_dazzler",
"when": 1749628868500,
"tag": "0024_spooky_alex_power",
"breakpoints": true
}
]

View File

@ -24,7 +24,7 @@ import m0020 from "./0020_little_marauders.sql"
import m0021 from "./0021_wakeful_onslaught.sql"
import m0022 from "./0022_tiny_northstar.sql"
import m0023 from "./0023_pink_namor.sql"
import m0024 from "./0024_smiling_dazzler.sql"
import m0024 from "./0024_spooky_alex_power.sql"
import journal from "./meta/_journal.json"
export default {

View File

@ -40,7 +40,7 @@ export const subscriptionsTable = sqliteTable("subscriptions", {
export const inboxesTable = sqliteTable("inboxes", {
id: text("id").primaryKey(),
title: text("title"),
secret: text("secret").notNull(),
secret: text("secret").notNull().default(""),
})
export const listsTable = sqliteTable("lists", {