You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
190 B

  1. ALTER TABLE sites
  2. ADD COLUMN url VARCHAR(255) DEFAULT NULL AFTER name;
  3. UPDATE sites
  4. JOIN roles ON sites.id = roles.site_id
  5. JOIN users ON users.id = roles.user_id
  6. SET sites.url = users.url;