We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
I noticed while reading #4807.
The documentation(https://codeigniter4.github.io/userguide/libraries/sessions.html?highlight=ci_sessions) specifies timestamp.
timestamp
CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(128) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, `data` blob NOT NULL, KEY `ci_sessions_timestamp` (`timestamp`) );
But, the file created by php spark make: migration--session is an int.
php spark make: migration--session
int
class CreateCiSessionsTable extends Migration { protected $DBGroup = 'default'; public function up() { $this->forge->addField([ 'id' => ['type' => 'VARCHAR', 'constraint' => 128, 'null' => false], 'ip_address' => ['type' => 'VARCHAR', 'constraint' => 45, 'null' => false], 'timestamp' => ['type' => 'INT', 'unsigned' => true, 'null' => false, 'default' => 0], 'data' => ['type' => 'TEXT', 'null' => false, 'default' => ''], ]); $this->forge->addKey('id', true); $this->forge->addKey('timestamp'); $this->forge->createTable('ci_sessions', true); } :
Context
The text was updated successfully, but these errors were encountered:
Resolved via #4877
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hello.
I noticed while reading #4807.
The documentation(https://codeigniter4.github.io/userguide/libraries/sessions.html?highlight=ci_sessions) specifies
timestamp
.But, the file created by
php spark make: migration--session
is anint
.Context
The text was updated successfully, but these errors were encountered: