diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql index d1731a82..35d2bf3e 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/equip_migration_sqlite.sql @@ -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 -); \ No newline at end of file +); diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql index 54bd5183..52da82d1 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/migration_mail_sqlite.sql @@ -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 -); \ No newline at end of file +); diff --git a/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql b/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql index 565206ab..d4d4b79b 100644 --- a/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql +++ b/Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql @@ -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,