feat: refs #5720 vehicle nuevos campos #2029
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2029
Loading…
Reference in New Issue
No description provided.
Delete Branch "5720-poolbancario"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +1,13 @@
ALTER TABLE vn.vehicle ADD supplierFk int(10) unsigned NULL COMMENT 'supplier from whom the vehicle was purchased';
Creo que acordamos en la convención SQL que los comentarios eran en español
ací no s'acordà res, per tant, es lliure
@ -0,0 +1,13 @@
ALTER TABLE vn.vehicle ADD supplierFk int(10) unsigned NULL COMMENT 'supplier from whom the vehicle was purchased';
ALTER TABLE vn.vehicle ADD CONSTRAINT vehicle_supplierFk FOREIGN KEY (supplierFk) REFERENCES vn.supplier(id);
ALTER TABLE vn.vehicle ADD import decimal(10,2) NULL;
Si no le pones el DEFAULT el default es NULL?
depén de com estiga configurada la BBDD en este cas se li posa que accepte valors nulls el camp
@ -0,0 +6,4 @@
ALTER TABLE vn.vehicle ADD supplierCoolerFk int(10) unsigned NULL;
ALTER TABLE vn.vehicle ADD CONSTRAINT vehicle_supplierCoolerFk FOREIGN KEY (supplierCoolerFk) REFERENCES vn.supplier(id) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE vn.vehicle ADD vin varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
Cuando se crea un nuevo campo que no va a tener foreign key, no se pone número: https://wiki.verdnatura.es/index.php/Convenciones_SQL#Data_type
ixa part de la wiki ni Juan ni Carlos ni jo l'haviem vist, i a mes no s'ha dit mai, lo correcte es especificar un varchar amb la seua longitud.
feat: #5720 vehicle nuevos camposto feat: refs #5720 vehicle nuevos campos