datatables formatting and first bit of flexible account number generation for clients.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
ALTER TABLE `m_client`
|
||||
ADD COLUMN `account_no` VARCHAR(20) NOT NULL AFTER `id`;
|
||||
|
||||
UPDATE `m_client`
|
||||
SET
|
||||
`account_no` = `id`
|
||||
WHERE `id` > 0;
|
||||
|
||||
ALTER TABLE `m_client` ADD UNIQUE INDEX `account_no_UNIQUE` (`account_no` ASC);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user