diff --git a/drop_column.sql b/drop_column.sql deleted file mode 100644 index c0845c83..00000000 --- a/drop_column.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE a76.item_line_quantities -DROP COLUMN IF EXISTS package_key; \ No newline at end of file diff --git a/drop_desc_column.sql b/drop_desc_column.sql deleted file mode 100644 index e8e26aa2..00000000 --- a/drop_desc_column.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE a76.item_line_quantities -DROP COLUMN IF EXISTS package_description; \ No newline at end of file diff --git a/fix_data.sql b/fix_data.sql deleted file mode 100644 index b3003427..00000000 --- a/fix_data.sql +++ /dev/null @@ -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; \ No newline at end of file diff --git a/fix_schema.sql b/fix_schema.sql deleted file mode 100644 index 7106b3c8..00000000 --- a/fix_schema.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE a76.item_line_quantities -ADD COLUMN IF NOT EXISTS package_id INTEGER REFERENCES a76.packages (id); \ No newline at end of file