diff --git a/migrations/.snapshot-dbildungs-iam-server.json b/migrations/.snapshot-dbildungs-iam-server.json index 35d7cfe2d..deb59c550 100644 --- a/migrations/.snapshot-dbildungs-iam-server.json +++ b/migrations/.snapshot-dbildungs-iam-server.json @@ -1836,248 +1836,6 @@ } } }, - { - "columns": { - "id": { - "name": "id", - "type": "uuid", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "mappedType": "uuid" - }, - "created_at": { - "name": "created_at", - "type": "timestamptz", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "length": 6, - "mappedType": "datetime" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamptz", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "length": 6, - "mappedType": "datetime" - }, - "email": { - "name": "email", - "type": "varchar(255)", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "mappedType": "string" - }, - "name": { - "name": "name", - "type": "varchar(255)", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "mappedType": "string" - }, - "username": { - "name": "username", - "type": "varchar(255)", - "unsigned": false, - "autoincrement": false, - "primary": false, - "nullable": false, - "mappedType": "string" - } - }, - "name": "ox_user_blacklist", - "schema": "public", - "indexes": [ - { - "keyName": "ox_user_blacklist_pkey", - "columnNames": [ - "id" - ], - "composite": false, - "constraint": true, - "primary": true, - "unique": true - } - ], - "checks": [], - "foreignKeys": {}, - "nativeEnums": { - "db_seed_status_enum": { - "name": "db_seed_status_enum", - "schema": "public", - "items": [ - "STARTED", - "DONE", - "FAILED" - ] - }, - "referenced_entity_type_enum": { - "name": "referenced_entity_type_enum", - "schema": "public", - "items": [ - "PERSON", - "ORGANISATION", - "ROLLE", - "SERVICE_PROVIDER" - ] - }, - "organisations_typ_enum": { - "name": "organisations_typ_enum", - "schema": "public", - "items": [ - "ROOT", - "LAND", - "TRAEGER", - "SCHULE", - "KLASSE", - "ANBIETER", - "SONSTIGE ORGANISATION / EINRICHTUNG", - "UNBESTAETIGT" - ] - }, - "traegerschaft_enum": { - "name": "traegerschaft_enum", - "schema": "public", - "items": [ - "01", - "02", - "03", - "04", - "05", - "06" - ] - }, - "geschlecht_enum": { - "name": "geschlecht_enum", - "schema": "public", - "items": [ - "m", - "w", - "d", - "x" - ] - }, - "vertrauensstufe_enum": { - "name": "vertrauensstufe_enum", - "schema": "public", - "items": [ - "KEIN", - "UNBE", - "TEIL", - "VOLL" - ] - }, - "email_address_status_enum": { - "name": "email_address_status_enum", - "schema": "public", - "items": [ - "ENABLED", - "DISABLED", - "REQUESTED", - "FAILED" - ] - }, - "rollen_art_enum": { - "name": "rollen_art_enum", - "schema": "public", - "items": [ - "LERN", - "LEHR", - "EXTERN", - "ORGADMIN", - "LEIT", - "SYSADMIN" - ] - }, - "personenstatus_enum": { - "name": "personenstatus_enum", - "schema": "public", - "items": [ - "AKTIV" - ] - }, - "jahrgangsstufe_enum": { - "name": "jahrgangsstufe_enum", - "schema": "public", - "items": [ - "01", - "02", - "03", - "04", - "05", - "06", - "07", - "08", - "09", - "10" - ] - }, - "rollen_merkmal_enum": { - "name": "rollen_merkmal_enum", - "schema": "public", - "items": [ - "BEFRISTUNG_PFLICHT", - "KOPERS_PFLICHT" - ] - }, - "rollen_system_recht_enum": { - "name": "rollen_system_recht_enum", - "schema": "public", - "items": [ - "ROLLEN_VERWALTEN", - "PERSONEN_SOFORT_LOESCHEN", - "PERSONEN_VERWALTEN", - "SCHULEN_VERWALTEN", - "KLASSEN_VERWALTEN", - "SCHULTRAEGER_VERWALTEN", - "MIGRATION_DURCHFUEHREN", - "PERSON_SYNCHRONISIEREN", - "CRON_DURCHFUEHREN", - "PERSONEN_ANLEGEN", - "IMPORT_DURCHFUEHREN" - ] - }, - "service_provider_target_enum": { - "name": "service_provider_target_enum", - "schema": "public", - "items": [ - "URL", - "EMAIL", - "SCHULPORTAL_ADMINISTRATION" - ] - }, - "service_provider_kategorie_enum": { - "name": "service_provider_kategorie_enum", - "schema": "public", - "items": [ - "EMAIL", - "UNTERRICHT", - "VERWALTUNG", - "HINWEISE", - "ANGEBOTE" - ] - }, - "service_provider_system_enum": { - "name": "service_provider_system_enum", - "schema": "public", - "items": [ - "NONE", - "EMAIL", - "ITSLEARNING" - ] - } - } - }, { "columns": { "id": { @@ -2457,6 +2215,262 @@ } } }, + { + "columns": { + "id": { + "name": "id", + "type": "uuid", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "mappedType": "uuid" + }, + "created_at": { + "name": "created_at", + "type": "timestamptz", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "length": 6, + "mappedType": "datetime" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamptz", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "length": 6, + "mappedType": "datetime" + }, + "email": { + "name": "email", + "type": "varchar(255)", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "mappedType": "string" + }, + "name": { + "name": "name", + "type": "varchar(255)", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "mappedType": "string" + }, + "username": { + "name": "username", + "type": "varchar(255)", + "unsigned": false, + "autoincrement": false, + "primary": false, + "nullable": false, + "mappedType": "string" + } + }, + "name": "ox_user_blacklist", + "schema": "public", + "indexes": [ + { + "keyName": "ox_user_blacklist_pkey", + "columnNames": [ + "id" + ], + "composite": false, + "constraint": true, + "primary": true, + "unique": true + } + ], + "checks": [], + "foreignKeys": {}, + "nativeEnums": { + "db_seed_status_enum": { + "name": "db_seed_status_enum", + "schema": "public", + "items": [ + "STARTED", + "DONE", + "FAILED" + ] + }, + "referenced_entity_type_enum": { + "name": "referenced_entity_type_enum", + "schema": "public", + "items": [ + "PERSON", + "ORGANISATION", + "ROLLE", + "SERVICE_PROVIDER" + ] + }, + "import_status_enum": { + "name": "import_status_enum", + "schema": "public", + "items": [ + "CANCELLED", + "COMPLETED", + "FAILED", + "FINISHED", + "INPROGRESS", + "INVALID", + "STARTED", + "VALID" + ] + }, + "organisations_typ_enum": { + "name": "organisations_typ_enum", + "schema": "public", + "items": [ + "ROOT", + "LAND", + "TRAEGER", + "SCHULE", + "KLASSE", + "ANBIETER", + "SONSTIGE ORGANISATION / EINRICHTUNG", + "UNBESTAETIGT" + ] + }, + "traegerschaft_enum": { + "name": "traegerschaft_enum", + "schema": "public", + "items": [ + "01", + "02", + "03", + "04", + "05", + "06" + ] + }, + "geschlecht_enum": { + "name": "geschlecht_enum", + "schema": "public", + "items": [ + "m", + "w", + "d", + "x" + ] + }, + "vertrauensstufe_enum": { + "name": "vertrauensstufe_enum", + "schema": "public", + "items": [ + "KEIN", + "UNBE", + "TEIL", + "VOLL" + ] + }, + "email_address_status_enum": { + "name": "email_address_status_enum", + "schema": "public", + "items": [ + "ENABLED", + "DISABLED", + "REQUESTED", + "FAILED" + ] + }, + "rollen_art_enum": { + "name": "rollen_art_enum", + "schema": "public", + "items": [ + "LERN", + "LEHR", + "EXTERN", + "ORGADMIN", + "LEIT", + "SYSADMIN" + ] + }, + "personenstatus_enum": { + "name": "personenstatus_enum", + "schema": "public", + "items": [ + "AKTIV" + ] + }, + "jahrgangsstufe_enum": { + "name": "jahrgangsstufe_enum", + "schema": "public", + "items": [ + "01", + "02", + "03", + "04", + "05", + "06", + "07", + "08", + "09", + "10" + ] + }, + "rollen_merkmal_enum": { + "name": "rollen_merkmal_enum", + "schema": "public", + "items": [ + "BEFRISTUNG_PFLICHT", + "KOPERS_PFLICHT" + ] + }, + "rollen_system_recht_enum": { + "name": "rollen_system_recht_enum", + "schema": "public", + "items": [ + "ROLLEN_VERWALTEN", + "PERSONEN_SOFORT_LOESCHEN", + "PERSONEN_VERWALTEN", + "SCHULEN_VERWALTEN", + "KLASSEN_VERWALTEN", + "SCHULTRAEGER_VERWALTEN", + "MIGRATION_DURCHFUEHREN", + "PERSON_SYNCHRONISIEREN", + "CRON_DURCHFUEHREN", + "PERSONEN_ANLEGEN", + "IMPORT_DURCHFUEHREN" + ] + }, + "service_provider_target_enum": { + "name": "service_provider_target_enum", + "schema": "public", + "items": [ + "URL", + "EMAIL", + "SCHULPORTAL_ADMINISTRATION" + ] + }, + "service_provider_kategorie_enum": { + "name": "service_provider_kategorie_enum", + "schema": "public", + "items": [ + "EMAIL", + "UNTERRICHT", + "VERWALTUNG", + "HINWEISE", + "ANGEBOTE" + ] + }, + "service_provider_system_enum": { + "name": "service_provider_system_enum", + "schema": "public", + "items": [ + "NONE", + "EMAIL", + "ITSLEARNING" + ] + } + } + }, { "columns": { "id": { diff --git a/migrations/Migration20241212002543-S.ts b/migrations/Migration20241212002543-S.ts deleted file mode 100644 index 0187f79ba..000000000 --- a/migrations/Migration20241212002543-S.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Migration } from '@mikro-orm/migrations'; - -export class Migration20241212002543 extends Migration { - public async up(): Promise { - this.addSql( - 'alter table "importdataitem" alter column "username" type varchar(50) using ("username"::varchar(50));', - ); - } - - public override async down(): Promise { - this.addSql( - 'alter table "importdataitem" alter column "username" type varchar(255) using ("username"::varchar(255));', - ); - } -} diff --git a/migrations/Migration20241206143703-S.ts b/migrations/Migration20241212134515-S.ts similarity index 88% rename from migrations/Migration20241206143703-S.ts rename to migrations/Migration20241212134515-S.ts index 83c9383f7..aaaa4cd23 100644 --- a/migrations/Migration20241206143703-S.ts +++ b/migrations/Migration20241212134515-S.ts @@ -1,6 +1,6 @@ import { Migration } from '@mikro-orm/migrations'; -export class Migration20241206143703 extends Migration { +export class Migration20241212134515 extends Migration { public async up(): Promise { this.addSql('alter type "import_status_enum" add value if not exists \'FINISHED\';'); @@ -10,7 +10,7 @@ export class Migration20241206143703 extends Migration { ); this.addSql( - 'alter table "importdataitem" add column "username" varchar(255) null, add column "password" varchar(255) null;', + 'alter table "importdataitem" add column "username" varchar(50) null, add column "password" varchar(255) null;', ); }