10 public function up() {
12 if (!$this->hasTable(
'users_entity')) {
17 $table = $this->table(
'users_entity');
19 if (
$table->hasIndexByName(
'password')) {
20 $table->removeIndexByName(
'password')->save();
23 if (
$table->hasColumn(
'password')) {
24 $table->removeColumn(
'password');
27 if (
$table->hasColumn(
'salt')) {
28 $table->removeColumn(
'salt');
37 if (!$this->hasTable(
'users_entity')) {
41 $table = $this->table(
'users_entity');
43 if (!
$table->hasColumn(
'password')) {
44 $table->addColumn(
'password',
'text', [
51 if (!
$table->hasColumn(
'salt')) {
52 $table->addColumn(
'salt',
'text', [
59 if (!
$table->hasIndexByName(
'password')) {
60 $table->addIndex([
'password'], [
up()
Remove legacy password hashes.