Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 6
CreateMigrationTable
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 6
 up
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 5
 down
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
<?php
namespace Eywa\Database\Migration {
    class CreateMigrationTable extends Migration
    {
        public static string $table = 'migrations';
        public static string $up_title = 'Creating the migrations table';
        public static string $up_success_message = 'The migrations table has been created successfully';
        public static string $up_error_message = 'The migrations table creation has failed';
        /**
         * @inheritDoc
         */
        public function up(): bool
        {
            return  $this->add('id', 'primary')
                    ->add('version', 'string', 255)
                    ->add('migration', 'string', 255)
                    ->add('time', 'datetime')
                    ->create();
        }
        /**
         * @inheritDoc
         */
        public function down(): bool
        {
            return $this->drop();
        }
    }
}