Skip to content

Commit a1d297d

Browse files
committed
fix: fix button field trigger
1 parent c8d67b5 commit a1d297d

File tree

17 files changed

+2082
-48
lines changed

17 files changed

+2082
-48
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
2+
CREATE TABLE `__new_undb_session` (
3+
`id` text PRIMARY KEY NOT NULL,
4+
`user_id` text NOT NULL,
5+
`expires_at` integer NOT NULL,
6+
`spaceId` text NOT NULL,
7+
FOREIGN KEY (`user_id`) REFERENCES `undb_user`(`id`) ON UPDATE no action ON DELETE no action,
8+
FOREIGN KEY (`spaceId`) REFERENCES `undb_space`(`id`) ON UPDATE no action ON DELETE no action
9+
);
10+
--> statement-breakpoint
11+
INSERT INTO `__new_undb_session`("id", "user_id", "expires_at", "spaceId") SELECT "id", "user_id", "expires_at", "spaceId" FROM `undb_session`;--> statement-breakpoint
12+
DROP TABLE `undb_session`;--> statement-breakpoint
13+
ALTER TABLE `__new_undb_session` RENAME TO `undb_session`;--> statement-breakpoint
14+
PRAGMA foreign_keys=ON;

0 commit comments

Comments
 (0)