WT1.0.20 Product - product_id_ios, product_id_android
This commit is contained in:
+14
-12
@@ -780,24 +780,26 @@ CREATE TABLE IF NOT EXISTS `product` (
|
||||
`type` enum('subscription','in-app-currency') NOT NULL DEFAULT 'subscription',
|
||||
`valid_from` date DEFAULT NULL,
|
||||
`valid_to` date DEFAULT NULL,
|
||||
`product_id_ios` char(50) NULL DEFAULT NULL,
|
||||
`product_id_android` char(50) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`product_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.product: ~12 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
|
||||
REPLACE INTO `product` (`product_id`, `name`, `description`, `type`, `valid_from`, `valid_to`) VALUES
|
||||
(1, 'Subscription A', '700 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(2, 'Subscription B', '1000 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(3, 'Subscription C', '1500 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(4, 'Subscription D', '2000 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(5, 'Subscription E', '3000 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(6, 'Subscription F', '5000 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(7, 'Subscription A Yearly', '7000 Ft', 'subscription', '2020-11-01', NULL),
|
||||
(8, 'Subscription B Yearly', '10000', 'subscription', '2020-11-04', NULL),
|
||||
(9, 'Subscription C Yearly', '15000', 'subscription', '2020-11-04', NULL),
|
||||
(10, 'Subscription D Yearly', '20000', 'subscription', '2020-11-04', NULL),
|
||||
(11, 'Subscription E Yearly', '30000', 'subscription', '2020-11-04', NULL),
|
||||
(12, 'Subscription F Yearly', '50000', 'subscription', '2020-11-04', NULL);
|
||||
(1, 'Subscription A', '700 Ft', 'subscription', '2020-11-01', NULL, 'p_ios_1', 'p_android_1'),
|
||||
(2, 'Subscription B', '1000 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(3, 'Subscription C', '1500 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(4, 'Subscription D', '2000 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(5, 'Subscription E', '3000 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(6, 'Subscription F', '5000 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(7, 'Subscription A Yearly', '7000 Ft', 'subscription', '2020-11-01', NULL, NULL, NULL),
|
||||
(8, 'Subscription B Yearly', '10000', 'subscription', '2020-11-04', NULL, NULL, NULL),
|
||||
(9, 'Subscription C Yearly', '15000', 'subscription', '2020-11-04', NULL, NULL, NULL),
|
||||
(10, 'Subscription D Yearly', '20000', 'subscription', '2020-11-04', NULL, NULL, NULL),
|
||||
(11, 'Subscription E Yearly', '30000', 'subscription', '2020-11-04', NULL, NULL, NULL),
|
||||
(12, 'Subscription F Yearly', '50000', 'subscription', '2020-11-04', NULL, NULL, NULL);
|
||||
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. product_test
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `product`
|
||||
ADD COLUMN `product_id_ios` CHAR(50) NULL DEFAULT NULL AFTER `valid_to`,
|
||||
ADD COLUMN `product_id_android` CHAR(50) NULL DEFAULT NULL AFTER `product_id_ios`;
|
||||
|
||||
UPDATE configuration set config_value = "1.0.20", date_change=CURRENT_DATE WHERE config_key = "db_version";
|
||||
Reference in New Issue
Block a user