feat(invoices): added invoice + linking to forklift
This commit is contained in:
2
migrations/0039_strange_iron_man.sql
Normal file
2
migrations/0039_strange_iron_man.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "forklifts" ADD COLUMN "upd_date" timestamp DEFAULT now();--> statement-breakpoint
|
||||
ALTER TABLE "forklifts" ADD COLUMN "upd_user" text DEFAULT 'LST';
|
||||
1
migrations/0040_keen_abomination.sql
Normal file
1
migrations/0040_keen_abomination.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "forklifts" ADD CONSTRAINT "forklifts_serial_number_unique" UNIQUE("serial_number");
|
||||
6
migrations/0041_aspiring_chamber.sql
Normal file
6
migrations/0041_aspiring_chamber.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE "lease_invoices" DROP CONSTRAINT "lease_invoices_company_id_forklift_companies_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "lease_invoices" DROP CONSTRAINT "lease_invoices_forklift_id_forklifts_forklift_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "lease_invoices" DROP COLUMN "company_id";--> statement-breakpoint
|
||||
ALTER TABLE "lease_invoices" DROP COLUMN "forklift_id";
|
||||
1
migrations/0042_true_thor_girl.sql
Normal file
1
migrations/0042_true_thor_girl.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "lease_invoices" ADD COLUMN "add_date" timestamp;
|
||||
1
migrations/0043_thick_sebastian_shaw.sql
Normal file
1
migrations/0043_thick_sebastian_shaw.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "lease_invoices" ADD CONSTRAINT "lease_invoices_invoice_number_unique" UNIQUE("invoice_number");
|
||||
2
migrations/0044_melted_mole_man.sql
Normal file
2
migrations/0044_melted_mole_man.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "lease_invoice_forklifts" ALTER COLUMN "id" SET DATA TYPE uuid;--> statement-breakpoint
|
||||
ALTER TABLE "lease_invoice_forklifts" ALTER COLUMN "id" SET DEFAULT gen_random_uuid();
|
||||
2230
migrations/meta/0039_snapshot.json
Normal file
2230
migrations/meta/0039_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2238
migrations/meta/0040_snapshot.json
Normal file
2238
migrations/meta/0040_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2200
migrations/meta/0041_snapshot.json
Normal file
2200
migrations/meta/0041_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2206
migrations/meta/0042_snapshot.json
Normal file
2206
migrations/meta/0042_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2214
migrations/meta/0043_snapshot.json
Normal file
2214
migrations/meta/0043_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2215
migrations/meta/0044_snapshot.json
Normal file
2215
migrations/meta/0044_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -274,6 +274,48 @@
|
||||
"when": 1762298736944,
|
||||
"tag": "0038_secret_luminals",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 39,
|
||||
"version": "7",
|
||||
"when": 1762310353351,
|
||||
"tag": "0039_strange_iron_man",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 40,
|
||||
"version": "7",
|
||||
"when": 1762310431830,
|
||||
"tag": "0040_keen_abomination",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 41,
|
||||
"version": "7",
|
||||
"when": 1762311550798,
|
||||
"tag": "0041_aspiring_chamber",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 42,
|
||||
"version": "7",
|
||||
"when": 1762312885208,
|
||||
"tag": "0042_true_thor_girl",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 43,
|
||||
"version": "7",
|
||||
"when": 1762313144802,
|
||||
"tag": "0043_thick_sebastian_shaw",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 44,
|
||||
"version": "7",
|
||||
"when": 1762314701057,
|
||||
"tag": "0044_melted_mole_man",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user