Se borraron archivos inecesarios

This commit is contained in:
2026-01-29 09:02:03 -06:00
parent 47c4984d3f
commit d4674ece23
4 changed files with 0 additions and 16 deletions

View File

@@ -1,2 +0,0 @@
ALTER TABLE a76.item_line_quantities
DROP COLUMN IF EXISTS package_key;

View File

@@ -1,2 +0,0 @@
ALTER TABLE a76.item_line_quantities
DROP COLUMN IF EXISTS package_description;

View File

@@ -1,10 +0,0 @@
-- Actualizar el nuevo campo package_id usando el valor numérico guardado erróneamente en package_key
UPDATE a76.item_line_quantities
SET
package_id = CAST(package_key AS INTEGER)
WHERE
package_key ~ '^\d+$'
AND package_id IS NULL;
-- Opcional: Limpiar el campo package_key si ya se migró (para evitar confusión futura, pero mejor dejarlo por seguridad)
-- UPDATE a76.item_line_quantities SET package_key = NULL WHERE package_id IS NOT NULL;

View File

@@ -1,2 +0,0 @@
ALTER TABLE a76.item_line_quantities
ADD COLUMN IF NOT EXISTS package_id INTEGER REFERENCES a76.packages (id);