This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
forked from emaijala/MLInvoice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_database_1.0_to_1.1.sql
69 lines (55 loc) · 1.72 KB
/
update_database_1.0_to_1.1.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
create table vllasku_settings (
id int(11) NOT NULL auto_increment,
name varchar(100) NOT NULL,
value text NULL,
PRIMARY KEY (id)
) ENGINE=INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci;
alter table vllasku_base add column (
logo_filename varchar(255) NULL,
logo_filesize integer(11) NULL,
logo_filetype varchar(255) NULL,
logo_filedata longblob NULL
);
alter table vllasku_invoice_state add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_row_type add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_company_type add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_base add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_company add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_company_contact add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_product add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_invoice add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_invoice_row add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_session_type add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_users add column (
deleted tinyint NOT NULL default 0
);
alter table vllasku_quicksearch change column name name varchar(255) NULL;
alter table vllasku_quicksearch change column form func varchar(100) NULL;
update vllasku_quicksearch set func='invoices' where func='invoice';
update vllasku_quicksearch set func='companies' where func='company';
alter table vllasku_base add column (
logo_top decimal(9,2) NULL,
logo_left decimal(9,2) NULL,
logo_width decimal(9,2) NULL,
logo_bottom_margin decimal(9,2) NULL
);