decide if creating underlying indexes for keys automatically now.
var $unique_keys = false; // Does the generator build unique keys
var $foreign_keys = false; // Does the generator build foreign keys
- var $primary_index = false;// Does the generator need to build one index for primary keys
- var $unique_index = true; // Does the generator need to build one index for unique keys
- var $foreign_index = true; // Does the generator need to build one index for foreign keys
-
var $sequence_extra_code = false; //Does the generator need to add extra code to generate the sequence fields
var $sequence_name = 'IDENTITY(1,1)'; //Particular name for inline sequences in this generator
var $sequence_only = false; //To avoid to output the rest of the field specs, leaving only the name and the sequence_name variable
var $unique_keys = false; // Does the generator build unique key
var $foreign_keys = false; // Does the generator build foreign keys
- var $primary_index = false;// Does the generator need to build one index for primary keys
- var $unique_index = true; // Does the generator need to build one index for unique keys
- var $foreign_index = true; // Does the generator need to build one index for foreign keys
+ var $drop_primary_key = 'ALTER TABLE TABLENAME DROP KEYTYPE KEYNAME'; // Template to drop PKs
+ // with automatic replace for TABLENAME, KEYTYPE and KEYNAME
+
+ var $drop_unique_key = 'ALTER TABLE TABLENAME DROP KEYTYPE KEYNAME'; // Template to drop UKs
+ // with automatic replace for TABLENAME, KEYTYPE and KEYNAME
+
+ var $drop_foreign_key = 'ALTER TABLE TABLENAME DROP KEYTYPE KEYNAME'; // Template to drop FKs
+ // with automatic replace for TABLENAME, KEYTYPE and KEYNAME
var $sequence_extra_code = false; //Does the generator need to add extra code to generate the sequence fields
var $sequence_name = 'auto_increment'; //Particular name for inline sequences in this generator
var $unique_keys = false; // Does the generator build unique keys
var $foreign_keys = false; // Does the generator build foreign keys
- var $primary_index = false;// Does the generator need to build one index for primary keys
- var $unique_index = true; // Does the generator need to build one index for unique keys
- var $foreign_index = true; // Does the generator need to build one index for foreign keys
-
var $sequence_extra_code = true; //Does the generator need to add extra code to generate the sequence fields
var $sequence_name = ''; //Particular name for inline sequences in this generator
var $unique_keys = false; // Does the generator build unique keys
var $foreign_keys = false; // Does the generator build foreign keys
- var $primary_index = false;// Does the generator need to build one index for primary keys
- var $unique_index = true; // Does the generator need to build one index for unique keys
- var $foreign_index = true; // Does the generator need to build one index for foreign keys
-
var $sequence_extra_code = false; //Does the generator need to add extra code to generate the sequence fields
var $sequence_name = 'BIGSERIAL'; //Particular name for inline sequences in this generator
var $sequence_only = true; //To avoid to output the rest of the field specs, leaving only the name and the sequence_name variable