Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-221

Schema toSQL() and toDropSQL() both need to delegete creation/drop of schema-level elements

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      The following schema-level changes have to be done before tables are created:

      • create Schema (PGSQL, MySQL, ...)
      • Create Federations (Azure)
      • Create Types (PGSQL, Oracle, ...)
      • Create Views, Stored Procedures, Triggers

      We should add the following APIs:

      array $sql AbstractPlatform::getCreateSchemaAdditionalStatements(Schema $schema);
      $object = new SQLObject($sqlUpCommand, $sqlDropCommand);
      $schema->addSQLObject($object);
      

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: