From ade890c38ceb1a7bf2fab8acfba0deeda9244fae Mon Sep 17 00:00:00 2001 From: Oreolek Date: Fri, 21 Feb 2014 13:53:25 +0700 Subject: [PATCH] auto increment db --- .../migrations/kangana/20140219171312.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 application/migrations/kangana/20140219171312.php diff --git a/application/migrations/kangana/20140219171312.php b/application/migrations/kangana/20140219171312.php new file mode 100644 index 0000000..bcac74f --- /dev/null +++ b/application/migrations/kangana/20140219171312.php @@ -0,0 +1,28 @@ +query(NULL, 'alter table `clients_subscriptions` modify column `id` int(11) not null auto_increment FIRST'); + } + + /** + * Run queries needed to remove this migration + * + * @param Kohana_Database $db Database connection + */ + public function down(Kohana_Database $db) + { + $db->query(NULL, 'alter table `clients_subscriptions` modify column `id` int(11) not null FIRST'); + } + +}