-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from alanhoskins/fix/boolean-mode
fix: try to use boolean mode from drizzle for shadowEnabled
- Loading branch information
Showing
6 changed files
with
291 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DROP INDEX IF EXISTS "users_table_email_unique";--> statement-breakpoint | ||
DROP INDEX IF EXISTS "users_table_githubId_unique";--> statement-breakpoint | ||
DROP INDEX IF EXISTS "users_table_githubUsername_unique";--> statement-breakpoint | ||
DROP INDEX IF EXISTS "users_table_githubAvatarUrl_unique";--> statement-breakpoint | ||
ALTER TABLE `snippets_table` ALTER COLUMN "shadowEnabled" TO "shadowEnabled" integer NOT NULL DEFAULT true;--> statement-breakpoint | ||
CREATE UNIQUE INDEX `users_table_email_unique` ON `users_table` (`email`);--> statement-breakpoint | ||
CREATE UNIQUE INDEX `users_table_githubId_unique` ON `users_table` (`githubId`);--> statement-breakpoint | ||
CREATE UNIQUE INDEX `users_table_githubUsername_unique` ON `users_table` (`githubUsername`);--> statement-breakpoint | ||
CREATE UNIQUE INDEX `users_table_githubAvatarUrl_unique` ON `users_table` (`githubAvatarUrl`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,271 @@ | ||
{ | ||
"version": "6", | ||
"dialect": "sqlite", | ||
"id": "a9edb9c1-c4eb-4710-9ca9-48355da04fac", | ||
"prevId": "a25d9e7c-46fc-4f89-b78f-a5382632f50d", | ||
"tables": { | ||
"snippets_table": { | ||
"name": "snippets_table", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"userId": { | ||
"name": "userId", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"title": { | ||
"name": "title", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"codeLeft": { | ||
"name": "codeLeft", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"codeRight": { | ||
"name": "codeRight", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"createdAt": { | ||
"name": "createdAt", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 0 | ||
}, | ||
"updatedAt": { | ||
"name": "updatedAt", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 0 | ||
}, | ||
"snippetWidth": { | ||
"name": "snippetWidth", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 450 | ||
}, | ||
"yPadding": { | ||
"name": "yPadding", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 42 | ||
}, | ||
"xPadding": { | ||
"name": "xPadding", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 42 | ||
}, | ||
"shadowEnabled": { | ||
"name": "shadowEnabled", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": true | ||
}, | ||
"shadowOffsetY": { | ||
"name": "shadowOffsetY", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 10 | ||
}, | ||
"shadowBlur": { | ||
"name": "shadowBlur", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 10 | ||
}, | ||
"shadowColor": { | ||
"name": "shadowColor", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": "'#000000'" | ||
}, | ||
"shadowOpacity": { | ||
"name": "shadowOpacity", | ||
"type": "real", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 0.6 | ||
}, | ||
"bgColor": { | ||
"name": "bgColor", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": "'#ffffff'" | ||
}, | ||
"language": { | ||
"name": "language", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": "'tsx'" | ||
}, | ||
"theme": { | ||
"name": "theme", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": "'nord'" | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"snippets_table_userId_users_table_id_fk": { | ||
"name": "snippets_table_userId_users_table_id_fk", | ||
"tableFrom": "snippets_table", | ||
"tableTo": "users_table", | ||
"columnsFrom": [ | ||
"userId" | ||
], | ||
"columnsTo": [ | ||
"id" | ||
], | ||
"onDelete": "no action", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"checkConstraints": {} | ||
}, | ||
"users_table": { | ||
"name": "users_table", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"email": { | ||
"name": "email", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"githubId": { | ||
"name": "githubId", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"githubUsername": { | ||
"name": "githubUsername", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"githubAvatarUrl": { | ||
"name": "githubAvatarUrl", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"createdAt": { | ||
"name": "createdAt", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 0 | ||
}, | ||
"updatedAt": { | ||
"name": "updatedAt", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": 0 | ||
} | ||
}, | ||
"indexes": { | ||
"users_table_email_unique": { | ||
"name": "users_table_email_unique", | ||
"columns": [ | ||
"email" | ||
], | ||
"isUnique": true | ||
}, | ||
"users_table_githubId_unique": { | ||
"name": "users_table_githubId_unique", | ||
"columns": [ | ||
"githubId" | ||
], | ||
"isUnique": true | ||
}, | ||
"users_table_githubUsername_unique": { | ||
"name": "users_table_githubUsername_unique", | ||
"columns": [ | ||
"githubUsername" | ||
], | ||
"isUnique": true | ||
}, | ||
"users_table_githubAvatarUrl_unique": { | ||
"name": "users_table_githubAvatarUrl_unique", | ||
"columns": [ | ||
"githubAvatarUrl" | ||
], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {}, | ||
"checkConstraints": {} | ||
} | ||
}, | ||
"views": {}, | ||
"enums": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
}, | ||
"internal": { | ||
"indexes": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters