Yii Migrations: Dealing with auto_increment for Oracle and MySQL
Oracle deals with auto_increment by using sequences and triggers: And MySQL is just an auto_increment keyword on the end of a column declaration: So I created a simple Autoincrement class: /protected/migrations/Autoincrement.php Which I included in the migration file for a schema. This class will handle checking the driver and executing the appropriate sql. What needs … Continue reading Yii Migrations: Dealing with auto_increment for Oracle and MySQL
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed