]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/raw/sql_58.sql
4c99be22a3125cebe5a51a2106a2a35f32c67bb2
[mobile-ledger.git] / app / src / main / res / raw / sql_58.sql
1 -- Copyright © 2021 Damyan Ivanov.
2 -- This file is part of MoLe.
3 -- MoLe is free software: you can distribute it and/or modify it
4 -- under the term of the GNU General Public License as published by
5 -- the Free Software Foundation, either version 3 of the License, or
6 -- (at your opinion), any later version.
7 --
8 -- MoLe is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 -- GNU General Public License terms for details.
12 --
13 -- You should have received a copy of the GNU General Public License
14 -- along with MoLe. If not, see <https://www.gnu.org/licenses/>.
15
16 -- profiles ground for  Room
17
18 PRAGMA foreign_keys = OFF;
19 BEGIN TRANSACTION;
20
21 create table profiles(
22  uuid text not null,
23  name text not null,
24  url text not null,
25  use_authentication integer not null,
26  auth_user text,
27  auth_password text,
28  order_no integer not null,
29  permit_posting integer not null default 0,
30  theme integer not null default -1,
31  preferred_accounts_filter varchar,
32  future_dates integer not null,
33  api_version integer not null,
34  show_commodity_by_default integer not null default 0,
35  default_commodity text,
36  show_comments_by_default integer not null default 1,
37  detected_version_pre_1_19 integer not null,
38  detected_version_major integer not null,
39  detected_version_minor integer not null,
40  primary key(uuid));
41
42 insert into profiles_new(
43  uuid, name, url, use_authentication, auth_user, auth_password, order_no,
44  permit_posting, theme, preferred_accounts_filter, future_dates, api_version,
45  show_commodity_by_default, default_commodity, show_comments_by_default,
46  detected_version_pre_1_19, detected_version_major, detected_version_minor)
47 select uuid, name, url, use_authentication, auth_user, auth_password, order_no,
48  permit_posting, theme, preferred_accounts_filter, future_dates, api_version,
49  show_commodity_by_default, default_commodity, show_comments_by_default,
50  detected_version_pre_1_19, detected_version_major, detected_version_minor
51 from profiles;
52
53 COMMIT TRANSACTION;
54
55 PRAGMA foreign_keys = ON;