Possible to manually set ID of new rows with RedBean PHP? -
i'm using redbean php dump data web scrape database, , need retain legacy ids, preferably primary key field. possible redbean?
when try set id so:
$bean->id = 56;
the row doesn't inserted - query ends being created instead becomes "update id
=56", nothing since record doesn't exist yet.
forcing specific value on auto-increment primary index asking race-condition problems. i'd suggest create new column legacy_id
instead save alternative id.
Comments
Post a Comment