From 16bd7180ce19a7a099de38583a31fdb7eebc257d Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Mon, 4 May 2020 16:08:24 +0200 Subject: [PATCH] TT#80151 billing.provisioning_templates table Change-Id: I1f8da1e4ffe9666f7ebf7917a4320e8ba9ee4f99 --- db_scripts/diff/15605.down | 4 ++++ db_scripts/diff/15605.up | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 db_scripts/diff/15605.down create mode 100644 db_scripts/diff/15605.up diff --git a/db_scripts/diff/15605.down b/db_scripts/diff/15605.down new file mode 100644 index 00000000..bd504662 --- /dev/null +++ b/db_scripts/diff/15605.down @@ -0,0 +1,4 @@ +use billing; + +drop table provisioning_templates; + diff --git a/db_scripts/diff/15605.up b/db_scripts/diff/15605.up new file mode 100644 index 00000000..493c9a27 --- /dev/null +++ b/db_scripts/diff/15605.up @@ -0,0 +1,16 @@ +use billing; + +create table provisioning_templates ( + id int(11) unsigned not null auto_increment, + reseller_id int(11) unsigned default null, + name varchar(255) not null, + description varchar(255) not null, + lang enum('perl','js') not null default 'js', + yaml text not null, + modify_timestamp timestamp not null default current_timestamp() on update current_timestamp(), + create_timestamp timestamp not null default '0000-00-00 00:00:00', + primary key (id), + unique key resnam_idx (reseller_id, name), + constraint p_t_resellerid_ref foreign key (reseller_id) references resellers (id) on delete cascade on update cascade +) engine=InnoDB default charset=utf8; +