USE `sakti`;
ALTER TABLE `sakti_barang_detail`
	CHANGE COLUMN `ID` `ID` BIGINT NOT NULL AUTO_INCREMENT FIRST,
	ADD COLUMN `HEADER` BIGINT NOT NULL COMMENT 'Ref Table = sakti_header' AFTER `ID`,
	CHANGE COLUMN `REF_COA` `REF_COA` BIGINT NULL DEFAULT '0' COMMENT 'Ref Table = sakti_coa' AFTER `HEADER`,
	ADD INDEX `HEADER` (`HEADER`);