Commit 07256f80 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

pgsql : remplacement de TIMESTAMP par TIMESTAMP(0) WITH TIMEZONE.

parent 588adc8f
Loading
Loading
Loading
Loading
+6 −5
Changes for src/UnicaenDbImport/CodeGenerator/PostgreSQL/CodeGenerator.php: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -88,21 +88,22 @@ class CodeGenerator extends AbstractCodeGenerator
        $sql = <<<'EOT'
CREATE TABLE IMPORT_REG (
	operation VARCHAR(128) NOT NULL,
	table_name VARCHAR(128) NOT NULL,
	table_name VARCHAR(128) NOT NULL,,
	source_code TEXT,
	field_name VARCHAR(128),
	from_value TEXT,
	to_value TEXT,
	sql TEXT NOT NULL,
	created_on TIMESTAMP NOT NULL,
	executed_on TIMESTAMP,
	import_hash VARCHAR(200) NOT NULL,
	source_code TEXT
	created_on TIMESTAMP(0) WITH TIMEZONE NOT NULL,
	executed_on TIMESTAMP(0) WITH TIMEZONE,
	import_hash VARCHAR(255) NOT NULL
);
EOT;
        return $sql;
    }

    /**
     * @param string $tableName
     * @return string
     * @codeCoverageIgnore
     */