Skip to content

Commit 87deb90

Browse files
committed
shared: regen schemas
1 parent 665680e commit 87deb90

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

packages/shared/src/db/migrations/0000_slow_luminals.sql packages/shared/src/db/migrations/0000_yielding_obadiah_stane.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ CREATE UNIQUE INDEX `cache_id` ON `posts` (`author_id`,`sent_at`);--> statement-
317317
CREATE INDEX `posts_channel_id` ON `posts` (`channel_id`,`id`);--> statement-breakpoint
318318
CREATE INDEX `posts_group_id` ON `posts` (`group_id`,`id`);--> statement-breakpoint
319319
CREATE TABLE `settings` (
320-
`user_id` text PRIMARY KEY NOT NULL,
320+
`id` text PRIMARY KEY DEFAULT 'settings' NOT NULL,
321321
`theme` text,
322322
`disable_app_tile_unreads` integer,
323323
`disable_avatars` integer,

packages/shared/src/db/migrations/meta/0000_snapshot.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "6",
33
"dialect": "sqlite",
4-
"id": "2382e17a-2a61-410f-a131-80c411b4f4fb",
4+
"id": "7ed8a350-4ce5-4e32-a6d4-6a6a841f5dc1",
55
"prevId": "00000000-0000-0000-0000-000000000000",
66
"tables": {
77
"activity_event_contact_group_pins": {
@@ -2114,12 +2114,13 @@
21142114
"settings": {
21152115
"name": "settings",
21162116
"columns": {
2117-
"user_id": {
2118-
"name": "user_id",
2117+
"id": {
2118+
"name": "id",
21192119
"type": "text",
21202120
"primaryKey": true,
21212121
"notNull": true,
2122-
"autoincrement": false
2122+
"autoincrement": false,
2123+
"default": "'settings'"
21232124
},
21242125
"theme": {
21252126
"name": "theme",

packages/shared/src/db/migrations/meta/_journal.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
{
66
"idx": 0,
77
"version": "6",
8-
"when": 1742417414724,
9-
"tag": "0000_slow_luminals",
8+
"when": 1742580564409,
9+
"tag": "0000_yielding_obadiah_stane",
1010
"breakpoints": true
1111
}
1212
]

packages/shared/src/db/migrations/migrations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is required for Expo/React Native SQLite migrations - https://orm.drizzle.team/quick-sqlite/expo
22

33
import journal from './meta/_journal.json';
4-
import m0000 from './0000_slow_luminals.sql';
4+
import m0000 from './0000_yielding_obadiah_stane.sql';
55

66
export default {
77
journal,

0 commit comments

Comments
 (0)