/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/config/Migrations
NameSizeModeActions
20150513201111_initial.php48900644editdlrm
20161031101316_AddSecretToUsers.php12700644editdlrm
20190208174112_AddAdditionalDataToUsers.php8960644editdlrm
schema-dump-default.lock79380644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/config/Migrations/20150513201111_initial.php (4890B)
table('users', ['id' => false, 'primary_key' => ['id']]); $table ->addColumn('id', 'uuid', [ 'null' => false, ]) ->addColumn('username', 'string', [ 'limit' => 255, 'null' => false, ]) ->addColumn('email', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->addColumn('password', 'string', [ 'limit' => 255, 'null' => false, ]) ->addColumn('first_name', 'string', [ 'default' => null, 'limit' => 50, 'null' => true, ]) ->addColumn('last_name', 'string', [ 'default' => null, 'limit' => 50, 'null' => true, ]) ->addColumn('token', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->addColumn('token_expires', 'datetime', [ 'default' => null, 'null' => true, ]) ->addColumn('api_token', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->addColumn('activation_date', 'datetime', [ 'default' => null, 'null' => true, ]) ->addColumn('tos_date', 'datetime', [ 'default' => null, 'null' => true, ]) ->addColumn('active', 'boolean', [ 'default' => false, 'null' => false, ]) ->addColumn('is_superuser', 'boolean', [ 'default' => false, 'null' => false, ]) ->addColumn('role', 'string', [ 'default' => 'user', 'limit' => 255, 'null' => true, ]) ->addColumn('created', 'datetime', [ 'null' => false, ]) ->addColumn('modified', 'datetime', [ 'null' => false, ]) ->create(); $table = $this->table('social_accounts', ['id' => false, 'primary_key' => ['id']]); $table ->addColumn('id', 'uuid', [ 'null' => false, ]) ->addColumn('user_id', 'uuid', [ 'null' => false, ]) ->addColumn('provider', 'string', [ 'limit' => 255, 'null' => false, ]) ->addColumn('username', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->addColumn('reference', 'string', [ 'limit' => 255, 'null' => false, ]) ->addColumn('avatar', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->addColumn('description', 'text', [ 'default' => null, 'null' => true, ]) ->addColumn('link', 'string', [ 'limit' => 255, 'null' => false, ]) ->addColumn('token', 'string', [ 'limit' => 500, 'null' => false, ]) ->addColumn('token_secret', 'string', [ 'default' => null, 'limit' => 500, 'null' => true, ]) ->addColumn('token_expires', 'datetime', [ 'default' => null, 'null' => true, ]) ->addColumn('active', 'boolean', [ 'default' => true, 'null' => false, ]) ->addColumn('data', 'text', [ 'null' => false, ]) ->addColumn('created', 'datetime', [ 'null' => false, ]) ->addColumn('modified', 'datetime', [ 'null' => false, ]) ->addForeignKey('user_id', 'users', 'id', array('delete' => 'CASCADE', 'update' => 'CASCADE')) ->create(); } }