From: Andrey Kutejko Date: Tue, 20 Jan 2015 14:43:26 +0000 (+0200) Subject: add example queries to template X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=e0bccca4eda12405a6fedcaed97762797369892f;p=migrations.git add example queries to template --- diff --git a/src/migrations.php b/src/migrations.php index cf75a89..94baff6 100644 --- a/src/migrations.php +++ b/src/migrations.php @@ -54,7 +54,9 @@ class Migrations $filename = $path.'/'.$ts.$name.'.php'; - file_put_contents($filename, "query('SELECT * FROM table WHERE param = ?', array('value')); + // $this->connection->exec('CREATE TABLE table (id BIGINT AUTO_INCREMENT, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = INNODB'); + } +} +