-
Notifications
You must be signed in to change notification settings - Fork 2
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 #61 from RoutinelyOrganization/develop
sync
- Loading branch information
Showing
5 changed files
with
97 additions
and
79 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,21 @@ | ||
/* | ||
Warnings: | ||
- The values [personal,study,finance,career,health] on the enum `TaskTags` will be removed. If these variants are still used in the database, this will fail. | ||
- Added the required column `category` to the `tasks` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- CreateEnum | ||
CREATE TYPE "TaskCategories" AS ENUM ('personal', 'study', 'finance', 'career', 'health'); | ||
|
||
-- AlterEnum | ||
BEGIN; | ||
CREATE TYPE "TaskTags_new" AS ENUM ('application', 'account', 'excercise', 'beauty', 'literature'); | ||
ALTER TABLE "tasks" ALTER COLUMN "tag" TYPE "TaskTags_new" USING ("tag"::text::"TaskTags_new"); | ||
ALTER TYPE "TaskTags" RENAME TO "TaskTags_old"; | ||
ALTER TYPE "TaskTags_new" RENAME TO "TaskTags"; | ||
DROP TYPE "TaskTags_old"; | ||
COMMIT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "tasks" ADD COLUMN "category" "TaskCategories" NOT NULL; |
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