Skip to content

Commit

Permalink
fix data type of boolean column so postgres works
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsalerno committed Dec 19, 2024
1 parent 43809d6 commit c9b513f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ CREATE TABLE "ddon_system_mail_attachment" (
"attachment_id" INTEGER NOT NULL,
"message_id" INTEGER NOT NULL,
"attachment_type" INTEGER NOT NULL,
"is_received" INTEGER NOT NULL DEFAULT 0,
"is_received" BOOLEAN NOT NULL DEFAULT FALSE,
"param0" VARCHAR(256) NOT NULL DEFAULT "",
"param1" INTEGER NOT NULL DEFAULT 0,
"param2" INTEGER NOT NULL DEFAULT 0,
"param3" INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY("attachment_id" AUTOINCREMENT),
FOREIGN KEY("message_id") REFERENCES "ddon_system_mail"("message_id") ON DELETE CASCADE
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ CREATE TABLE "ddon_system_mail_attachment" (
"message_id" INTEGER NOT NULL,
"attachment_id" INTEGER NOT NULL,
"attachment_type" INTEGER NOT NULL,
"is_received" INTEGER NOT NULL DEFAULT 0,
"is_received" BOOLEAN NOT NULL DEFAULT FALSE,
"param0" VARCHAR(256) NOT NULL DEFAULT "",
"param1" INTEGER NOT NULL DEFAULT 0,
"param2" INTEGER NOT NULL DEFAULT 0,
"param3" INTEGER NOT NULL DEFAULT 0,
FOREIGN KEY("message_id") REFERENCES "ddon_system_mail"("message_id") ON DELETE CASCADE
);
);
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ CREATE TABLE IF NOT EXISTS "ddon_system_mail_attachment"
"attachment_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"message_id" INTEGER NOT NULL,
"attachment_type" INTEGER NOT NULL,
"is_received" INTEGER NOT NULL DEFAULT 0,
"is_received" BOOLEAN NOT NULL DEFAULT FALSE,
"param0" VARCHAR(256) NOT NULL DEFAULT '',
"param1" INTEGER NOT NULL DEFAULT 0,
"param2" INTEGER NOT NULL DEFAULT 0,
Expand Down

0 comments on commit c9b513f

Please sign in to comment.