diff --git a/config/Migrations/001_TablesCreation.php b/config/Migrations/001_TablesCreation.php new file mode 100644 index 0000000..3b6c05d --- /dev/null +++ b/config/Migrations/001_TablesCreation.php @@ -0,0 +1,38 @@ +table('metatags') + ->addColumn('name', 'string', [ + 'limit' => 255, + 'null' => false, + ]) + ->addColumn('type', 'string', [ + 'limit' => 45, + 'null' => true, + ]) + ->create() + ; + + $this->table('metataggeds') + ->addColumn('model', 'string', [ + 'limit' => 45, + 'null' => false, + ]) + ->addColumn('foreing_key', 'integer') + ->addColumn('metatag_id', 'integer') + ->addColumn('language', 'string', [ + 'limit' => 45, + 'null' => false, + ]) + ->addColumn('value', 'string') + ->addColumn('created', 'datetime') + ->addColumn('modified', 'datetime') + ->create() + ; + } +} +