Add hardware ingest flow and UI upload
This commit is contained in:
5
migrations/0008_service_uniques/down.sql
Normal file
5
migrations/0008_service_uniques/down.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE projects
|
||||
DROP INDEX uniq_projects_customer_name;
|
||||
|
||||
ALTER TABLE customers
|
||||
DROP INDEX uniq_customers_name;
|
||||
5
migrations/0008_service_uniques/up.sql
Normal file
5
migrations/0008_service_uniques/up.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE customers
|
||||
ADD UNIQUE KEY uniq_customers_name (name);
|
||||
|
||||
ALTER TABLE projects
|
||||
ADD UNIQUE KEY uniq_projects_customer_name (customer_id, name);
|
||||
Reference in New Issue
Block a user