瀏覽代碼

1.01 migration

Alan Colon 7 年之前
父節點
當前提交
eec9d8259f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/database/migrations/1.01-location-to-terminal.js

+ 2 - 2
lib/database/migrations/1.01-location-to-terminal.js

@@ -10,8 +10,8 @@ module.exports = {
     // StaffMember
     // Workday
 
-    console.log(chalk.red('Renaming locationId -> terminalId on clients'))
-    await queryInterface.renameColumn('clients', 'locationId', 'terminalId')
+    console.log(chalk.red('Renaming locationId -> terminalId on retailers'))
+    await queryInterface.renameColumn('retailers', 'locationId', 'terminalId')
 
     console.log(chalk.red('Renaming locationId -> terminalId on staffMembers'))
     await queryInterface.renameColumn('staffMembers', 'locationId', 'terminalId')