2024-01-29 11:35:49 +00:00
|
|
|
ALTER TABLE IF EXISTS `vn2008`.`definitivo` RENAME `vn`.`dmsStorageBox`;
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS `vn`.`dmsStorageBox`
|
|
|
|
CHANGE COLUMN IF EXISTS `definitivo_id` `id` int(11) NOT NULL,
|
|
|
|
CHANGE COLUMN IF EXISTS `empresa_id` `companyFk` int(10) unsigned NOT NULL,
|
|
|
|
CHANGE COLUMN IF EXISTS `desde` `started` bigint(20) NOT NULL,
|
|
|
|
CHANGE COLUMN IF EXISTS `hasta` `ended` bigint(20) NOT NULL,
|
|
|
|
CHANGE COLUMN IF EXISTS `fecha` `created` timestamp NOT NULL DEFAULT current_timestamp();
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS `vn`.`dmsStorageBox` COMMENT='Caja en la que se guardan la documentacion fisica de dms';
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS vn.dmsStorageBox ADD CONSTRAINT dmsStorageBox_company_FK
|
2024-01-30 07:06:36 +00:00
|
|
|
FOREIGN KEY (companyFk) REFERENCES vn.company(id);
|