Skip to content

Commit

Permalink
perm and message channel col rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrowM committed Jun 20, 2024
1 parent 985bbcb commit ce57e1f
Show file tree
Hide file tree
Showing 7 changed files with 1,336 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ docker-compose.yml
.gitignore
.idea

data/main.sqlite
data/main-pc.sqlite
data/backups
9 changes: 9 additions & 0 deletions data/migrations/0001_overjoyed_betty_brant.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ALTER TABLE `schedule` RENAME COLUMN `user_id` TO `message_channel_id`;--> statement-breakpoint
/*
SQLite does not support "Drop not null from 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
*/
Loading

0 comments on commit ce57e1f

Please sign in to comment.