Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

how to add idAttribute in migration file

$
0
0

CLI version 3.1.2, Titanium SDK version 3.1.2.GA , Alloy 1.2.0

I have tried doing

db.idAttribute ="gID";
also tried adding adapter in create table but none of it works and alloy_id get created

migration.up = function(db) {
    db.dropTable();
 
    db.createTable({
        columns : {
            "fnName" : "TEXT",
            "gID" : "INTEGER PRIMARY KEY AUTOINCREMENT"
        },
        adapter : {
            "idAttribute" : "gID"
        },
    });
 
};
 
migration.down = function(db) {
 
};

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>