This repository was archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql-install.php
More file actions
37 lines (34 loc) · 1.36 KB
/
sql-install.php
File metadata and controls
37 lines (34 loc) · 1.36 KB
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
<?php
// Init
$sql = array();
$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'kiala_order` (
`id_kiala_order` int(10) NOT NULL AUTO_INCREMENT,
`id_customer` int(10) NOT NULL,
`id_cart` int(10) NOT NULL,
`id_order` int(10) NOT NULL,
`id_country_pickup` int(10) NOT NULL,
`id_country_delivery` int(10) NOT NULL,
`point_short_id` varchar(10) NOT NULL,
`point_alias` varchar(32) NOT NULL,
`point_name` varchar(32) NOT NULL,
`point_street` varchar(128) NOT NULL,
`point_location_hint` varchar(128) DEFAULT NULL,
`point_zip` varchar(12) DEFAULT NULL,
`point_city` varchar(64) NOT NULL,
`exported` tinyint(1) NOT NULL,
`commercialValue` float unsigned NOT NULL,
`parcelDescription` varchar(70) NOT NULL,
`parcelVolume` float unsigned NOT NULL,
`date_upd` datetime NOT NULL,
PRIMARY KEY (`id_kiala_order`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';
$sql[] = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'kiala_country` (
`id_kiala_country` int(10) NOT NULL AUTO_INCREMENT,
`id_country` int(10) NOT NULL,
`dspid` varchar(12) NOT NULL,
`preparation_delay` int(2) NOT NULL,
`active` tinyint(1) NOT NULL,
`pickup_country` tinyint(1) NOT NULL,
PRIMARY KEY (`id_kiala_country`),
UNIQUE KEY `id_country` (`id_country`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;';