diff --git a/includes/ClicShopping/Schema/MariaDb/administrator_menu.txt b/includes/ClicShopping/Schema/MariaDb/administrator_menu.txt index c226512be..77f76c2fc 100755 --- a/includes/ClicShopping/Schema/MariaDb/administrator_menu.txt +++ b/includes/ClicShopping/Schema/MariaDb/administrator_menu.txt @@ -6,7 +6,7 @@ access tinyint(1) not null default (0) image varchar(255) default null b2b_menu tinyint(1) default(0) not_null app_code varchar(255) default null -status tinyint(1) default(1) not null +status tinyint(1) default(1) -- primary id idx_categories_parent_id parent_id diff --git a/includes/ClicShopping/Schema/MariaDb/administrators.txt b/includes/ClicShopping/Schema/MariaDb/administrators.txt index 4c78aef57..f91288f08 100755 --- a/includes/ClicShopping/Schema/MariaDb/administrators.txt +++ b/includes/ClicShopping/Schema/MariaDb/administrators.txt @@ -3,11 +3,11 @@ user_name varchar(255) not_null user_password varchar(255) not_null name varchar(255) not_null first_name varchar(255) not_null -access tinyint(1) not null default (0) +access tinyint(1) default(0) not_null double_authentification_secret varchar(255) null -status tinyint(1) NOT NULL default (1) +status tinyint(1) default(1) not_null date_added datetime not_null -last_modified datetime NULL +last_modified datetime null -- primary id ## diff --git a/includes/ClicShopping/Schema/MariaDb/ip_restriction.txt b/includes/ClicShopping/Schema/MariaDb/ip_restriction.txt index e03a63560..c69b98c62 100755 --- a/includes/ClicShopping/Schema/MariaDb/ip_restriction.txt +++ b/includes/ClicShopping/Schema/MariaDb/ip_restriction.txt @@ -1,5 +1,5 @@ id int not_null auto_increment -ip_restriction varchar(64) not null +ip_restriction varchar(64) not_null ip_comment varchar(255) null default null ip_status_shop tinyint(1) default(0) not_null ip_status_admin tinyint(1) default(0) not_null diff --git a/includes/ClicShopping/Schema/MariaDb/pages_manager.txt b/includes/ClicShopping/Schema/MariaDb/pages_manager.txt index 72c3e6735..b59a27cdf 100755 --- a/includes/ClicShopping/Schema/MariaDb/pages_manager.txt +++ b/includes/ClicShopping/Schema/MariaDb/pages_manager.txt @@ -1,5 +1,5 @@ pages_id int(11) not_null auto_increment -links_target varchar(6) default('_self') not null +links_target varchar(6) default('_self') sort_order int(3) status int(1) default(1) not_null page_type int(1) default(0) not_null diff --git a/includes/ClicShopping/Schema/MariaDb/return_orders.txt b/includes/ClicShopping/Schema/MariaDb/return_orders.txt index 9738a9392..c1705591c 100755 --- a/includes/ClicShopping/Schema/MariaDb/return_orders.txt +++ b/includes/ClicShopping/Schema/MariaDb/return_orders.txt @@ -1,24 +1,24 @@ -return_id int not null auto_increment -return_ref varchar(32) not null, -order_id int not null, -product_id int not null, -customer_id int not null, -customer_firstname varchar(255) not null, -customer_lastname varchar(255) not null, -customer_email varchar(255) not null, -customer_telephone varchar(32) not null, -product_name varchar(255) not null, -product_model varchar(255) not null, -quantity int(4) not null, -opened tinyint(1) not null default (0), -return_reason_id int not null, -return_action_id int not null, -return_status_id int not null default (1), -comment text not null, -date_ordered date not null, -date_added datetime not null, +return_id int not_null auto_increment +return_ref varchar(32) not_null, +order_id int not_null, +product_id int not_null, +customer_id int not_null, +customer_firstname varchar(255) not_null, +customer_lastname varchar(255) not_null, +customer_email varchar(255) not_null, +customer_telephone varchar(32) not_null, +product_name varchar(255) not_null, +product_model varchar(255) not_null, +quantity int(4) not_null, +opened tinyint(1) not_null default (0), +return_reason_id int not_null, +return_action_id int not_null, +return_status_id int not_null default (1), +comment text not_null, +date_ordered date not_null, +date_added datetime not_null, date_modified datetime default NULL, -archive tinyint(1) not null default (0) +archive tinyint(1) not_null default (0) -- primary return_id ## diff --git a/includes/ClicShopping/Schema/MariaDb/return_orders_history.txt b/includes/ClicShopping/Schema/MariaDb/return_orders_history.txt index 31502bb52..24403b912 100755 --- a/includes/ClicShopping/Schema/MariaDb/return_orders_history.txt +++ b/includes/ClicShopping/Schema/MariaDb/return_orders_history.txt @@ -1,10 +1,10 @@ -return_history_id int not null, -return_id int not null, -return_status_id int not null, -notify tinyint(1) not null, -comment text not null, -date_added datetime not null, -admin_user_name varchar(64) default NULL +return_history_id int not_null, +return_id int not_null, +return_status_id int not_null, +notify tinyint(1) not_null, +comment text not_null, +date_added datetime not_null, +admin_user_name varchar(64) default null -- primary return_history_id diff --git a/includes/ClicShopping/Schema/MariaDb/return_orders_reason.txt b/includes/ClicShopping/Schema/MariaDb/return_orders_reason.txt index ab5b6d131..2e3ac2ce8 100755 --- a/includes/ClicShopping/Schema/MariaDb/return_orders_reason.txt +++ b/includes/ClicShopping/Schema/MariaDb/return_orders_reason.txt @@ -1,6 +1,6 @@ -return_reason_id int not null, -language_id int not null default (0), -name varchar(128) not null +return_reason_id int not_null, +language_id int default(0) not_null, +name varchar(128) not_null -- primary return_reason_id idx_return_reason_id language_id diff --git a/includes/ClicShopping/Schema/MariaDb/return_orders_status .txt b/includes/ClicShopping/Schema/MariaDb/return_orders_status .txt index 492ac0978..ef5fca329 100755 --- a/includes/ClicShopping/Schema/MariaDb/return_orders_status .txt +++ b/includes/ClicShopping/Schema/MariaDb/return_orders_status .txt @@ -1,6 +1,6 @@ -return_status_id int(11) not null, -language_id int(11) not null default 0, -name varchar(32) not null +return_status_id int(11) not_null, +language_id int(11) default(0) not_null, +name varchar(32) not_null -- primary return_status_id idx_return_status_id language_id diff --git a/includes/ClicShopping/Schema/MariaDb/reviews_vote.txt b/includes/ClicShopping/Schema/MariaDb/reviews_vote.txt index c6ff800ae..1822d5357 100755 --- a/includes/ClicShopping/Schema/MariaDb/reviews_vote.txt +++ b/includes/ClicShopping/Schema/MariaDb/reviews_vote.txt @@ -3,7 +3,7 @@ products_id int not_null reviews_id int not_null vote tinyint(1) default(0) not_null customer_id int not_null -sentiment tinyint default(0) not null +sentiment tinyint default(0) not_null -- primary id idx_reviews_products_id products_id diff --git a/includes/ClicShopping/Schema/MariaDb/suppliers_info.txt b/includes/ClicShopping/Schema/MariaDb/suppliers_info.txt index 3e54b9c72..09ecf0fcc 100755 --- a/includes/ClicShopping/Schema/MariaDb/suppliers_info.txt +++ b/includes/ClicShopping/Schema/MariaDb/suppliers_info.txt @@ -1,7 +1,7 @@ -suppliers_id int default(0) not null -languages_id int default(0) not null +suppliers_id int default(0) not_null +languages_id int default(0) not_null suppliers_url varchar(255) -url_clicked int(5) default(0) not null +url_clicked int(5) default(0) not_null date_last_click datetime -- primary suppliers_id languages_id diff --git a/sql_upgrade/update3_446.txt b/sql_upgrade/update3_446.txt index e69de29bb..b80bfc23a 100644 --- a/sql_upgrade/update3_446.txt +++ b/sql_upgrade/update3_446.txt @@ -0,0 +1 @@ +fix db \ No newline at end of file