Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1195

Alloy Migrations: Template up.down functions do not match documentation

    Details

    • Story Points:
      3
    • Sprint:
      2014 Sprint 25 Tooling

      Description

      When generating a migration with the Alloy CLI (1.5.1), the generated file has this code:

      migration.up = function(db) {
       
      };
       
      migration.down = function(db) {
      	
      };
      

      But documentation uses 'migrator' in place of 'db' for the function parameter.

      Since the passed-in object itself has a 'db' parameter, the 'migrator' naming helps to avoid potential confusion.

      migrator.db.execute(...)

      vs.

      db.db.execute(...)

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              tstatler Tim Statler
              Reviewer:
              Feon Sua Xin Miao
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration