- Implemented PaymentsTabForm component for managing payment information. - Implemented TransportTabForm component for managing transport details. - Implemented ValidationTabForm component for managing validation documents. - Enhanced the main edit page to include new tabs and handle data saving for each section. - Added alert components for success and error messages during save operations. - Updated server-side logic to handle fetching and saving of pedimento data.
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=========================================="
|
|
echo "PostgreSQL App - Inicialización"
|
|
echo "=========================================="
|
|
|
|
# Este script es ejecutado por docker-entrypoint-initdb.d
|
|
# PostgreSQL ya está iniciado por el contenedor padre
|
|
|
|
echo "✓ PostgreSQL está listo (iniciado por contenedor)"
|
|
|
|
# La base de datos anexo76_core ya está creada por POSTGRES_DB
|
|
echo "✓ Base de datos 'anexo76_core' ya configurada"
|
|
|
|
# Crear extensiones y esquemas
|
|
echo "Creando extensiones y esquemas..."
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
|
|
CREATE SCHEMA IF NOT EXISTS a76;
|
|
CREATE SCHEMA IF NOT EXISTS a22;
|
|
CREATE SCHEMA IF NOT EXISTS a24;
|
|
CREATE SCHEMA IF NOT EXISTS a30;
|
|
DROP SCHEMA IF EXISTS a31;
|
|
EOSQL
|
|
|
|
echo "✓ Extensiones y esquemas creados correctamente"
|
|
echo "=========================================="
|
|
echo "PostgreSQL App - Inicialización completada"
|
|
echo "=========================================="
|