-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lucas Bozzo
authored and
Lucas Bozzo
committed
Apr 28, 2024
1 parent
766c3de
commit 774bd93
Showing
3 changed files
with
106 additions
and
0 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,16 @@ | ||
/* | ||
SQLite does not support "Set autoincrement to a column" out of the box, we do not generate automatic migration for that, so it has to be done manually | ||
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php | ||
https://www.sqlite.org/lang_altertable.html | ||
https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3 | ||
Due to that we don't generate migration automatically and it has to be done manually | ||
*/--> statement-breakpoint | ||
/* | ||
SQLite does not support "Changing existing column type" out of the box, we do not generate automatic migration for that, so it has to be done manually | ||
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php | ||
https://www.sqlite.org/lang_altertable.html | ||
https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3 | ||
Due to that we don't generate migration automatically and it has to be done manually | ||
*/ |
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,83 @@ | ||
{ | ||
"version": "5", | ||
"dialect": "sqlite", | ||
"id": "cb0a8c8e-d9eb-42b9-8f45-d7fc17085bb8", | ||
"prevId": "4361308a-3c5c-46cd-91d7-51faea0ac2d3", | ||
"tables": { | ||
"author": { | ||
"name": "author", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "integer", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": true | ||
}, | ||
"name": { | ||
"name": "name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": { | ||
"author_id_unique": { | ||
"name": "author_id_unique", | ||
"columns": [ | ||
"id" | ||
], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"quote": { | ||
"name": "quote", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "integer", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": true | ||
}, | ||
"quote": { | ||
"name": "quote", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"author_id": { | ||
"name": "author_id", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": { | ||
"quote_id_unique": { | ||
"name": "quote_id_unique", | ||
"columns": [ | ||
"id" | ||
], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
} | ||
}, | ||
"enums": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
} | ||
} |
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