mirror of https://github.com/sipwise/db-schema.git
modify_timestamp, terminate_timestampchanges/15/615/1
parent
8317b29442
commit
27d06994a2
@ -0,0 +1,8 @@
|
|||||||
|
USE billing;
|
||||||
|
|
||||||
|
ALTER TABLE billing_profiles DROP COLUMN terminate_timestamp;
|
||||||
|
ALTER TABLE billing_profiles DROP COLUMN create_timestamp;
|
||||||
|
ALTER TABLE billing_profiles DROP COLUMN modify_timestamp;
|
||||||
|
ALTER TABLE billing_profiles DROP COLUMN status;
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
USE billing;
|
||||||
|
|
||||||
|
ALTER TABLE billing_profiles
|
||||||
|
ADD COLUMN `status` enum('active','terminated') NOT NULL DEFAULT 'active',
|
||||||
|
ADD COLUMN `modify_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
|
ADD COLUMN `create_timestamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
ADD COLUMN `terminate_timestamp` timestamp NULL DEFAULT NULL;
|
||||||
Loading…
Reference in new issue