3 source /etc/tizen-platform.conf
5 sqlite3 ${TZ_SYS_DB}/.account.db 'PRAGMA journal_mode = PERSIST;
6 CREATE TABLE if not exists label (AppId TEXT, Label TEXT, Locale TEXT);
7 CREATE TABLE if not exists account_type (_id INTEGER PRIMARY KEY AUTOINCREMENT, AppId TEXT,
8 ServiceProviderId TEXT, IconPath TEXT, SmallIconPath TEXT, MultipleAccountSupport INT);
9 CREATE TABLE if not exists account_custom (AccountId INTEGER, AppId TEXT, Key TEXT, Value TEXT);
10 CREATE TABLE if not exists account (_id INTEGER PRIMARY KEY AUTOINCREMENT, user_name TEXT, email_address TEXT, display_name TEXT, icon_path TEXT,
11 source TEXT, package_name TEXT, access_token TEXT, domain_name TEXT, auth_type INTEGER, secret INTEGER, sync_support INTEGER,
12 txt_custom0 TEXT, txt_custom1 TEXT, txt_custom2 TEXT, txt_custom3 TEXT, txt_custom4 TEXT,
13 int_custom0 INTEGER, int_custom1 INTEGER, int_custom2 INTEGER, int_custom3 INTEGER, int_custom4 INTEGER);
14 CREATE TABLE if not exists capability (_id INTEGER PRIMARY KEY AUTOINCREMENT, key TEXT, value INTEGER,
15 package_name TEXT, user_name TEXT, account_id INTEGER, FOREIGN KEY (account_id) REFERENCES account(_id));
16 CREATE TABLE if not exists provider_feature (app_id TEXT, key TEXT);'
18 chgrp ${TZ_SYS_USER_GROUP} ${TZ_SYS_DB}/.account.db
19 chgrp ${TZ_SYS_USER_GROUP} ${TZ_SYS_DB}/.account.db-journal
21 chmod 660 ${TZ_SYS_DB}/.account.db
22 chmod 660 ${TZ_SYS_DB}/.account.db-journal