Neon / portal template support (#713)
TODOs: - [x] Do restart when checkout / restore if there is a DB - [x] List all branches (branch id, name, date) - [x] Allow checking out versions with no DB - [x] safeguard to never delete main branches - [x] create app hook for neon template - [x] weird UX with connector on configure panel - [x] tiny neon logo in connector - [x] deploy to vercel - [x] build forgot password page - [x] what about email setup - [x] lots of imgix errors - [x] edit file - db snapshot - [x] DYAD_DISABLE_DB_PUSH - [ ] update portal doc - [x] switch preview branch to be read-only endpoint - [x] disable supabase sys prompt if neon is enabled - [ ] https://payloadcms.com/docs/upload/storage-adapters - [x] need to use main branch... Phase 2? - [x] generate DB migrations
This commit is contained in:
14
drizzle/0009_previous_misty_knight.sql
Normal file
14
drizzle/0009_previous_misty_knight.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE `versions` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`app_id` integer NOT NULL,
|
||||
`commit_hash` text NOT NULL,
|
||||
`neon_db_timestamp` text,
|
||||
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
|
||||
`updated_at` integer DEFAULT (unixepoch()) NOT NULL,
|
||||
FOREIGN KEY (`app_id`) REFERENCES `apps`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `versions_app_commit_unique` ON `versions` (`app_id`,`commit_hash`);--> statement-breakpoint
|
||||
ALTER TABLE `apps` ADD `neon_project_id` text;--> statement-breakpoint
|
||||
ALTER TABLE `apps` ADD `neon_development_branch_id` text;--> statement-breakpoint
|
||||
ALTER TABLE `apps` ADD `neon_preview_branch_id` text;
|
||||
Reference in New Issue
Block a user