aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-08-17 20:54:43 +0200
committerWilly Micieli <micieli@laposte.net>2019-08-17 20:54:43 +0200
commite8e6db5b379ce1c123e702674f0bc16bfd4b2552 (patch)
tree23574dafbb376f9db090c02b65947cf099cb0483
parent26a1ca984c6cff1c5337e92c6a56b85ffc1dbc06 (diff)
downloadshaolin-e8e6db5b379ce1c123e702674f0bc16bfd4b2552.zip
shaolin-e8e6db5b379ce1c123e702674f0bc16bfd4b2552.tar.gz
add default migration without prepare all fields
-rw-r--r--db/dump/.gitignore0
-rw-r--r--db/migrations/20190817185326_user.php33
-rw-r--r--db/seeds/UserSeed.php20
3 files changed, 53 insertions, 0 deletions
diff --git a/db/dump/.gitignore b/db/dump/.gitignore
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/db/dump/.gitignore
diff --git a/db/migrations/20190817185326_user.php b/db/migrations/20190817185326_user.php
new file mode 100644
index 0000000..f5ffff2
--- /dev/null
+++ b/db/migrations/20190817185326_user.php
@@ -0,0 +1,33 @@
+<?php
+
+
+use Phinx\Migration\AbstractMigration;
+
+class User extends AbstractMigration
+{
+ /**
+ * Change Method.
+ *
+ * Write your reversible migrations using this method.
+ *
+ * More information on writing migrations is available here:
+ * http://docs.phinx.org/en/latest/migrations.html#the-abstractmigration-class
+ *
+ * The following commands can be used in this method and Phinx will
+ * automatically reverse them when rolling back:
+ *
+ * createTable
+ * renameTable
+ * addColumn
+ * renameColumn
+ * addIndex
+ * addForeignKey
+ *
+ * Remember to call "create()" or "update()" and NOT "save()" when working
+ * with the Table class.
+ */
+ public function change()
+ {
+
+ }
+}
diff --git a/db/seeds/UserSeed.php b/db/seeds/UserSeed.php
new file mode 100644
index 0000000..e627dfa
--- /dev/null
+++ b/db/seeds/UserSeed.php
@@ -0,0 +1,20 @@
+<?php
+
+
+use Phinx\Seed\AbstractSeed;
+
+class UserSeed extends AbstractSeed
+{
+ /**
+ * Run Method.
+ *
+ * Write your database seeder using this method.
+ *
+ * More information on writing seeders is available here:
+ * http://docs.phinx.org/en/latest/seeding.html
+ */
+ public function run()
+ {
+
+ }
+}