10 lines
901 B
Plaintext
10 lines
901 B
Plaintext
|
UPDATE entities_vouchers SET date = date || ".000000", lasteditdate = lasteditdate || ".000000", creationdate = creationdate || ".000000";
|
||
|
UPDATE entities_attendances SET date = date || ".000000", creationdate = creationdate || ".000000";
|
||
|
ALTER TABLE "Entities_Ledgers" ADD COLUMN "ledger_type" nvarchar(50) NOT NULL DEFAULT "";
|
||
|
UPDATE "Entities_Ledgers" SET ledger_type = 'employees' where type = 10;
|
||
|
|
||
|
|
||
|
ALTER TABLE "main"."Entities_Batches" RENAME TO "Entities_Batches_old";
|
||
|
CREATE TABLE "main"."Entities_Batches" ("BatchID" guid NOT NULL ,"Name" nvarchar(50) NOT NULL ,"ProductID" guid,"QuantityRemaining" numeric NOT NULL ,"Rate" numeric NOT NULL ,"Tax" numeric NOT NULL ,"Discount" numeric NOT NULL );
|
||
|
INSERT INTO "main"."Entities_Batches" SELECT "BatchID","Name","ProductID","QuantityRemaining","Rate","Tax","Discount" FROM "main"."Entities_Batches_old";
|
||
|
DROP TABLE "main"."Entities_Batches_old";
|