masterrecord 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ class schema{
26
26
  var queryBuilder = new sqliteQuery();
27
27
  // Fixed: Use addColum (consistent with MySQL/PostgreSQL) instead of alterColumn
28
28
  // This allows explicit column definitions to work, not just CLI-generated migrations
29
- table.realDataType = queryBuilder.typeManager(table.type);
29
+ // Note: No need to set table.realDataType - columnMapping handles type conversion internally
30
30
  var query = queryBuilder.addColum(table);
31
31
  this.context._execute(query);
32
32
  }
@@ -34,7 +34,7 @@ class schema{
34
34
  if(this.context.isMySQL){
35
35
  var sqlquery = require("./migrationMySQLQuery");
36
36
  var queryBuilder = new sqlquery();
37
- table.realDataType = queryBuilder.typeManager(table.type);
37
+ // Note: No need to set table.realDataType - columnMapping handles type conversion internally
38
38
  var query = queryBuilder.addColum(table);
39
39
  this.context._execute(query);
40
40
  }
@@ -42,7 +42,7 @@ class schema{
42
42
  if(this.context.isPostgres){
43
43
  var postgresQuery = require("./migrationPostgresQuery");
44
44
  var queryBuilder = new postgresQuery();
45
- table.realDataType = queryBuilder.typeManager(table.type);
45
+ // Note: No need to set table.realDataType - columnMapping handles type conversion internally
46
46
  var query = queryBuilder.addColum(table);
47
47
  this.context._execute(query);
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "masterrecord",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
5
5
  "main": "MasterRecord.js",
6
6
  "bin": {