@@ -254,10 +254,10 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -254,10 +254,10 @@ public class BootstrapBean implements BootstrapBeanLocal {
"DELETE FROM product_limitations_roles where productlimitation_id in (SELECT id FROM product_limitations WHERE TYPE = 'PLACE')",
"DELETE FROM product_limitations_roles where productlimitation_id in (SELECT id FROM product_limitations WHERE TYPE = 'PLACE')",
"DELETE FROM products_product_limitations where productlimits_id in (SELECT id FROM product_limitations WHERE TYPE = 'PLACE')",
"DELETE FROM products_product_limitations where productlimits_id in (SELECT id FROM product_limitations WHERE TYPE = 'PLACE')",
"DELETE FROM product_limitations WHERE TYPE = 'PLACE'",
"DELETE FROM product_limitations WHERE TYPE = 'PLACE'",
});
});
dbUpdates.add(newString[]{
dbUpdates.add(newString[]{
newDDLBuilder().createTable("vips")
newDDLBuilder().createTable("vips")
.serialPK("id")
.serialPK("id")
.text("description",false)
.text("description",false)
...
@@ -270,6 +270,15 @@ public class BootstrapBean implements BootstrapBeanLocal {
...
@@ -270,6 +270,15 @@ public class BootstrapBean implements BootstrapBeanLocal {
.toString()
.toString()
});
});
dbUpdates.add(newString[]{
"CREATE TABLE vip_product_deliveries (id SERIAL NOT NULL, DELIVERYTIME TIMESTAMPTZ NOT NULL, meta json, NOTES TEXT, quantity DECIMAL(24,4) NOT NULL, DELIVERER_id INTEGER NOT NULL, VIPPRODUCT_id INTEGER NOT NULL, PRIMARY KEY (id))",
"CREATE TABLE vip_products (id SERIAL NOT NULL, meta json, NAME TEXT, NOTES TEXT, quantity DECIMAL(24,4) NOT NULL, PRODUCT_id INTEGER, VIP_id INTEGER NOT NULL, PRIMARY KEY (id))",