When calling the sqlite3_prepare_v2() function, the error is occurred.
The error is 'foreign key mismatch'. This patch removes unnecessary query.
Change-Id: Id711b8f6fa6a192e55dd35a5e7b3cefc34e4acb8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
uid INTEGER NOT NULL,
is_enabled TEXT NOT NULL DEFAULT 'false',
PRIMARY KEY (appid, uid)
- FOREIGN KEY (appid)
- REFERENCES alias_info(appid)
- ON DELETE CASCADE
);
CREATE TRIGGER IF NOT EXISTS update_alias_info_for_uid
" uid INTEGER NOT NULL,\n" \
" is_enabled TEXT NOT NULL DEFAULT 'false',\n" \
" PRIMARY KEY (appid, uid)\n" \
- " FOREIGN KEY (appid)\n" \
- " REFERENCES alias_info(appid)\n" \
- " ON DELETE CASCADE\n" \
");\n" \
"CREATE TRIGGER IF NOT EXISTS update_alias_info_for_uid\n" \
" AFTER UPDATE ON alias_info_for_uid\n" \