V1 Migrator
V1Migrator is a utility script for detecting active Administer v1.x.x installations and migrating data to Administer 2.0.0.
Migrator.CheckForV1
Checks for an Administer v1.x.x installation by looking for the _Rank1
key.
luau
Migrator.CheckForV1(): boolean
luau
if Migrator.CheckForV1() then
print("Administer v1 is present!")
end
Migrator.Migrate
Note
This is a DESTRUCTIVE ACTION. Running this will permanently break Administer 1.2.3 and will render existing panels unable to operate until an update is pushed to your game. Run this with caution.
Begins moving ranks and apps over from Administer 1.2.3 to the new data format. The following actions are performed:
- https://administer.notpyx.me is removed and https://aos-canary.admsoftware.org is added
- This will not always be it's behavior.
- Old apps are removed, but are automatically replaced with their v2 API counterparts
- org.admsoftware.Reporter is installed
luau
Migrator.Migrate()
luau
if Migrator.CheckForV1() then
print("Administer v1 is present!")
Migrator.Migrate()
end