```relation "networks" already exists (SQLSTATE 42...
# talk-hydra
b
Copy code
relation "networks" already exists (SQLSTATE 42P07)
error executing migrations/20150101000001000000_networks.postgres.up.sql, sql: -- Migration generated by the command below; DO NOT EDIT.
h
you're probably using same database for both Hydra and Kratos. so unlike usually, where a
hydra_
prefix is used, hydra introduced
networks
table which is pretty much same table as in kratos. you can temporarily rename kratos's table, then run your migrations, then copy nid data from kratos's networks over to hydra's networks, then fix all the foreign keys in kratos tables to reflect the change, but then it still will not work, because ory expects network to contain only a single nid record. this is messed up.
156 Views